How to analyze PermGen space? [duplicate]

自闭症网瘾萝莉.ら 提交于 2019-12-01 02:19:30

问题


Possible Duplicate:
How to analyze PermGen contents?

I want to know what is occupying the PermGen space - string intern() or classes? Is there any tool which will help with this analysis?


回答1:


For Memory Analysis

  1. Use jvisualvm.exe present in bin directory of JDK

  2. Using jvisualvm take the Thread/Heap dump depending on the process id of the Application you need to profile.

  3. Memory Analyzer (MAT) an eclipse plugin. where you can import the heap dump from jvisualvm and analyze for possible leaks.




回答2:


You can use monitoring tools that are in the bin folder of your jdk, as "jvisualvm" or "jconsole"




回答3:


I use Yourkit to analyse what is in the heap-space. It is not free but it is a really big help when analysing memory issues and/or performance issues. (They have an evaluation version)



来源:https://stackoverflow.com/questions/10753176/how-to-analyze-permgen-space

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!