I am trying to figure out if there is a way to determine the properties of the JVM startup from a running java process. In particular, I'm trying to figure out where options like -Xmx (maximum heap size) and -XX: MaxPermSize are stored. I am running Sun 1.6 jvm.
If you're wondering why I want to do this, I have several JVM web servers that may or may not be configured correctly, and I want to add this to the startup code check. It is much easier for me to check a piece of java code that is deployed everywhere than manually find and verify all jvm startup files. Right now, jvm configuration files, for better or worse, are not part of our build process or are checked in the source control.
java jvm configuration jvm-hotspot
Bob Albright Oct 05 '09 at 3:59 2009-10-05 03:59
source share