Tool for java.lang.OutOfMemoryError: Java heap space , Java Swing Application
I am working with a Java Swing Application. I am getting java.lang.OutOfMemoryError: Java heap space. I am not able to figure out which method is creating many objects or if there are any not needed references. I want to figure out the root cause for the problem. Kindly guide me about any tool (JProfiler) for this issue. Also as I have not used this tool before so any added information regarding the same will be helpful. Thanks in advance.
Krish开发者_JAVA技巧na
If you don't already own a profiler, you might find JVisualVM useful. It ships with the JDK.
The NetBeans IDE ships with a full featured profiler.
jmap and the Eclipse Memory Analyzer Too1
[1]: http://www.eclipse.org/mat/ are a good combination
精彩评论