$ /usr/java6/bin/java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap3260sr4-20090219_01(SR4))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260-20090215_29883 (JIT enabled, AOT enabled)
J9VM - 20090215_029883_bHdSMr
JIT - r9_20090213_2028
GC - 20090213_AA)
JCL - 20090218_01
I am hosting several Java Web apps on Tomcat and periodically (about once a month) the server crashes with OutOfMemory exceptions. I allocate 2Gig (2048M) to Tomcat.
Sooo.... I am now trying to analyze the HeapDump (.phd) file that generated. I found he396 and I am trying to use it to do this. I give it 3000m (java -Xmx3000m -jar he396.jar) and it gets about 95% finished (according to the Overall progress bar) and then I get an out of memory exception using the tool... (sorry for the formatting below)
Exception in thread "Thread-3" Exception in thread "TimerQueue" java.lang.OutOfMemoryError at coHeapInfo.javam.ibm.jinwoo.heap.HeapInfo.reorg(java.lang.Out at
OfMemoryError:1043) at com.ibm.jinwoo.heap.PHDTask$ActualTprocessHeapDumpask.java.awt.EventQueue(.PHDTask.javainvokeLater:(1553)
at com.ibm.jinwoo.heap.PHDTask$ActualTask.<init>(PHDTask.jav:E1ventQueue.java:a879)66) at 5
at com.ibm.jinwoo.heap.PHDTa.sk$jconstructavax.swing.SwingUtilities1(.invokeLaterP:HDTask.jav(1S9wingUtilities.java:a81)27 at com.ibm.jinwoo.heap.ThreadHandler$.17)run3( atjThreadHandler.jav.aavax.swing.Timer:po5st ()Timer.java2: atj5ava.lang.Thread.7r3un (Thread.java:735)) at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:209) at javax.swing.TimerQueue.run(TimerQueue.java:245) at java.lang.Thread.run(Thread.java:735)
What can I do to read this file? I have tried as much as -Xmx3500m and it still does not finish. The actual heap dump file is about 450MB.
try this code below: i believe it will be of great help to you. I almost had the same config like yours but with this piece of code the HeapAnalyser managed to reach 100%.