How to analyze Heap Dumps

陌路散爱 提交于 2020-01-23 14:59:05

问题


I am successful in generating Heap Dumps of my application machine but I do not know how to analyze it. Can someone tell me how to?


回答1:


Use jhat utility for Java on Sun solaris.

A good example is here https://blogs.oracle.com/alanb/entry/heap_dumps_are_back_with




回答2:


You can try VisialVM, for some reason my heap dump wasn't loading in jhat but was in visualVM. It give you a graph of the class that are taking much of the heap. here where to get it: http://visualvm.java.net/download.html



来源:https://stackoverflow.com/questions/2422868/how-to-analyze-heap-dumps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!