非堆内存和已加载类的数量持续增加 [英] Non heap memory and No of loaded classes keeps on increasing

查看:591
本文介绍了非堆内存和已加载类的数量持续增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在对我们的应用程序进行性能测试. 在测试过程中,我们发现非堆内存和已装入类的总数在不断增加.

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.

推荐答案

通过jvisualVm从JDK进行第一个堆转储,并使用

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆