问题
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