Profile Image
Rogier Konings

Empty JVM Arguments section in the GC Log report

hi

we are using GCEasy for quite some time now. It is very useful.
In the report produced by GCEasy there is a section about JVM arguments used. However, in our case, this section is always empty. We are looking for some command line option (for Openjdk 11) so that the JVM arguments will be reported in GCEasy, but failed to find documentation on this. Hope you can help.


 

Report URL - https://gceasy.io/my-gc-report.jsp?p=c2hhcmVkLzIwMjIvMDIvMjMvLS10b21jYXQtZ2MubG9nLS04LTE0LTEw&channel=WEB

  • jvmarguments

  • openjdk11

  • applicationprocessid

  • jcmdvmflags

Profile Image

Ram Lakshmanan

Hello Edwin! Can you share what JVM arguments are you passing to your application now? Based on it we can tell what needs to be revised. Thanks.

Please Sign In or to post your comment or answer

Profile Image

sainath

Hello Edwin Zenderink,

 

You can use the below command to get the JVM arguments.

jcmd <Process_Id> VM.flags

Where: <Process_Id>  process Id of your target application.

 

Ex: If your application process Id is 3564 then the command will be: jcmd 3564 VM.flags

Profile Image

Rogier Konings

Output of jcmd VM.flags is:

-XX:CICompilerCount=4 -XX:ConcGCThreads=3 -XX:G1ConcRefinementThreads=10 -XX:G1HeapRegionSize=1048576 -XX:GCDrainStackTargetSize=64 -XX:InitialHeapSize=12582912 -XX:MarkStackSize=4194304 -XX:MaxHeapSize=591396864 -XX:MaxNewSize=354418688 -XX:MaxRAM=786432000 -XX:MaxRAMPercentage=75.000000 -XX:MinHeapDeltaBytes=1048576 -XX:NonNMethodCodeHeapSize=5836300 -XX:NonProfiledCodeHeapSize=122910970 -XX:-OmitStackTraceInFastThrow -XX:ProfiledCodeHeapSize=122910970 -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC -XX:-UseLargePagesIndividualAllocation -XX:+UseStringDeduplication 

The command line argument used to produce the GC log is: 

-Xlog:gc*:file=tomcat-gc.log

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jvmarguments

  • openjdk11

  • applicationprocessid

  • jcmdvmflags