I just got this working. Out of the box, the jmap utility won't connect to a Java 6 JVM. It complains about being unable to open the socket to the target JVM. Enabling the JVM JMX connector doesn't help and adding -server doesn't help either.
It looks like you need the following on the JVM command lines:
JMXTOOLS="-server -Xverify:none -Xshare:off -Dcom.sun.management.jmxremote"
After adding the above then the jmap command and so on will work with the JVM. Just run ps to find the pid and the run jmap -histo:live pid to see the results.
I enjoyed reading this post. Thanks for a wonderful job!
Posted by: Acai Berry Pure | February 22, 2010 at 04:33 AM
All am just gonna say is keep up the good work... I spend 60% of my time reading blogs, and i find most of your posts brilliant
Posted by: Acai Berry Pure | May 24, 2010 at 03:31 PM