如何分析PermGen空间? [英] How to analyze PermGen space?
本文介绍了如何分析PermGen空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
如何分析PermGen内容?
我想知道占用PermGen空间的是什么 - 字符串实习生()或类?是否有任何工具可以帮助进行此分析?
I want to know what is occupying the PermGen space - string intern() or classes? Is there any tool which will help with this analysis?
推荐答案
进行内存分析
-
在JDK的bin目录中使用
jvisualvm.exe
使用jvisualvm进行线程/堆转储,具体取决于您需要分析的应用程序
的进程ID
。
Using jvisualvm take the Thread/Heap dump depending on the process id
of the Application
you need to profile.
Memory Analyzer(MAT)一个eclipse插件。在哪里可以从jvisualvm导入堆转储并分析可能的泄漏。
Memory Analyzer (MAT) an eclipse plugin. where you can import the heap dump from jvisualvm and analyze for possible leaks.
这篇关于如何分析PermGen空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文