Java: find out what uses all memory

I have an out of memory Java application, but I don't know which code is allocating memory Is there an app I can view? I use eclipse

Solution

Since you use eclipse, I would recommend the eclipse memory analyzer plug-in This tool works well and can even provide some reports of possible leak suspects I've seen 1g heap dump, no problem I just use jconsole provided with JDK to get the dump

One of the authors of this tool is also a great blog

It's also free

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>