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

Adon Smith picture Adon Smith · Jan 15, 2015 · Viewed 17.1k times · Source

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 ?

Answer

apangin picture apangin · Jan 15, 2015

Try

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