Measure heap used by each object in Java [closed]

瘦欲@ 提交于 2019-12-24 03:09:34

问题


Can some suggest a good a free memory profiling tool which will show memory being used by each object in the heap separately. We are trying to profile our application and I used jconsole but its gives me total memory usage only. I am using Eclipse and OC4J


回答1:


Visual VM can do it for you..

https://visualvm.java.net/




回答2:


Eclipse Memory Analyzer




回答3:


Not free, but IMHO the best one: http://www.yourkit.com/



来源:https://stackoverflow.com/questions/2553680/measure-heap-used-by-each-object-in-java

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