开发者

Tool for java.lang.OutOfMemoryError: Java heap space , Java Swing Application

开发者 https://www.devze.com 2023-02-18 05:37 出处:网络
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 r

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

0

精彩评论

暂无评论...
验证码 换一张
取 消