Thursday, 20 December 2012

Looking at Solaris JVM heap

Carry out a a full heap dump
  • jmap -d64 -dump:format=b,file=/tmp/heap.hprof  <PID>

Read the heap dump
  • jhat  -port <port> -J-mx2048m /tmp/heap.hprof
  • Point a browser at the host you are running jhat on using the port specified by -port above

No comments:

Post a Comment