java - how to show the jvm info when using openJ9 - Stack Overflow

admin2025-04-26  3

I am using ibm-semeru-runtimes:open-21.0.5_11-jdk-focal as the runtime of the java application, now I found jstat could not work in openJ9, I have tried to use this command:

jstat -gc 7

is there anyway to show the jvm memory info when using openJ9? Also tried:

jstat -J-Xmx10m -J-Dcom.ibm.tools.attach.enable=yes

followed by the official document /openj9/docs/tool_jstat/ I also tried jmap, only this command works for openJ9:

jmap -histo:live 7

I am using ibm-semeru-runtimes:open-21.0.5_11-jdk-focal as the runtime of the java application, now I found jstat could not work in openJ9, I have tried to use this command:

jstat -gc 7

is there anyway to show the jvm memory info when using openJ9? Also tried:

jstat -J-Xmx10m -J-Dcom.ibm.tools.attach.enable=yes

followed by the official document https://eclipse.dev/openj9/docs/tool_jstat/ I also tried jmap, only this command works for openJ9:

jmap -histo:live 7
Share Improve this question edited Jan 15 at 7:54 Dolphin asked Jan 15 at 5:53 DolphinDolphin 39.5k103 gold badges377 silver badges721 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

While jstat in OpenJ9 may not work exactly as it does in HotSpot, OpenJ9 provides several alternative methods for monitoring memory and garbage collection, including jcmd, jvmstat, and JVM flags like -XshowSettings. You should use these OpenJ9-specific tools and options to gather memory information for your Java application.

转载请注明原文地址:http://anycun.com/QandA/1745597696a90974.html