Thanks for your reply. I tried to use jmap, unfortunately it fails:
bash-3.2$ jmap -F -dump:file=heap.bin 58708
Attaching to process ID 58708, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 20.51-b01-457
Dumping heap to heap.bin ...
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.tools.jmap.JMap.runTool(JMap.java:179)
at sun.tools.jmap.JMap.main(JMap.java:110)
Caused by: sun.jvm.hotspot.oops.UnknownOopException