Possible Duplicate:
Read Java JVM startup parameters (eg -Xmx)
I'm running an application on a Tomcat server, and I want to access the values of the -Xms -Xmx
and -XX:MaxPermSize
JVM argument values so that I can log them for help with debugging.
I've tried to find these arguments listed in System.properties
, and using System.getEnv()
, but they are not there. Is there another way to get them, or, alternately, is their lack of presence in System.properties
and System.getEnv()
an indication that these options have not been set?