javajvmjava-opts

Command to find out -Xms and -Xmx variable values for a given java process?


I have a java program, which i ran and figured out its process id with jps.

How can i see what is the value of -Xms and -Xmx variable for this java process ?


Solution

  • Try

    jcmd <PID> VM.command_line
    jcmd <PID> VM.flags