Measure heap used by each object in Java [closed]

2019-07-18 02:20发布

问题:

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/



标签: java jmx