非堆内存和已加载类的数量持续增加 [英] Non heap memory and No of loaded classes keeps on increasing
问题描述
我们正在对我们的应用程序进行性能测试. 在测试过程中,我们发现非堆内存和已装入类的总数在不断增加.
We are doing a performance test of our application. During the test, we find that non heap memory and total no of loaded classes keeps on increasing over the time.
我们的猜测可能是某些第三方jar或应用程序代码正在泄漏.
Our guess is probably some 3rd party jar or application code is leaking.
找到此类泄漏或查明问题的最佳方法是什么? 有什么工具可以帮助我找到根本原因吗?
What are the best ways to find such leak or pin point the problem ? Any tools which can help me to find the rootcause ?
我们正在使用Jboss EAP 6.1.
We are using Jboss EAP 6.1.
推荐答案
Make first Heap Dump by jvisualVm from JDK and analyze it with Memory Analyzer (MAT).
然后在标题非堆"处按此方向查看: http://www.yourkit.com/
And then see in this direction at header 'Non-Heap': http://www.yourkit.com/
这篇关于非堆内存和已加载类的数量持续增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!