JBOSS SHAPEM
$ jcmd JAVA_PID GC.heap_dump -all=true FILENAME.hprof
Successful Seahorse
$ jcmd JAVA_PID GC.heap_dump -all=true FILENAME.hprof