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.
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