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
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.