Thursday, April 29, 2010

How to profile your app with Memory Analyzer and JConsole



Start java app
Start JConsole and attach as Local (pid for eclipse will be seen once the JConsole starts)
Enter pathname to a *.hprof memory dump file in the dumpHeap (p0 value) in JConsole's MBean tab > HotSpotDiagnostic > Operation
Open the hprof file in Memory analyser in Eclipse

No comments:

Post a Comment