From: Krist on 25 Feb 2010 21:04 Hi gurus, I want to do heap dump analysis to find out what comsume our 3GB heap. We areusing Linux and SUn JVM 1.5.0_15 64 bit I try to use jmap, but it gave me this error : Error attaching to process sun.jvm.hotspot.debugger.DebuggerException.. Is his a bug or what is other way to dump the heap ? Thank you for your help, xtanto
From: John B. Matthews on 26 Feb 2010 05:36 In article <1d252cb3-1edd-4726-a63a-d196276bb9fb(a)w27g2000pre.googlegroups.com>, Krist <krislioe(a)gmail.com> wrote: > I want to do heap dump analysis to find out what comsume our 3GB > heap. We areusing Linux and SUn JVM 1.5.0_15 64 bit > > I try to use jmap, but it gave me this error : > Error attaching to process > sun.jvm.hotspot.debugger.DebuggerException.. > > Is his a bug or what is other way to dump the heap ? On my platform, jmap must be run with sufficient privileges to access another JVM's heap. You might try su or sudo. As an aside, I saw "java.lang.RuntimeException: gHotSpotVMTypes was not initialized properly in the remote process; can not continue" when attempting to jmap a program running inside NetBeans. I suspect NetBeans may have modified the relevant data structure for its own purposes. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
|
Pages: 1 Prev: How to emluate "properties" in Java? Next: Secure storage |