Search code examples
javajava-7heap-dumpthread-dump

How to configure Oracle Java7 to generate a thread dump upon heap dump?


I am hunting a problem in my java app which use a great high heap memory. I have managed to make Oracle Java to dump heap before Full GC(HeapDumpBeforeFullGC), but the thread dump is also needed. I have googled for a solution, but no luck.


Solution

  • It seems that there is no such solution for oracle jdk, I will use IBM Jdk which will dump both thread and heap if turn on the switch: -Xdump:heap:events=fullgc