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.
Comments