如何抛弃彼尔姆根(Permgen)? [英] How to dump Permgen?
本文介绍了如何抛弃彼尔姆根(Permgen)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想转储应用服务器的Permgen.
I wanted to take the dump of the Permgen of a application server.
我不想使用-XX:+TraceClassLoading -XX:+TraceClassUnloading
,因为我不想重新启动服务器,我也不想使用jconsole
.
I do not want to use -XX:+TraceClassLoading -XX:+TraceClassUnloading
as i do not want to restart the server, Neither i want to use jconsole
.
我有任何类似jmap
的工具(用于堆转储未找到permgen的任何选项)来获取permgen,因此我只能提供pid
.
I there any tool like jmap
(used to heap dump didnt find any option for permgen) to get the permgen so that i can supply only the pid
.
推荐答案
jmap -permstat <pid>
将产生这样的输出:
30337 intern Strings occupying 2746200 bytes.
class_loader classes bytes parent_loader alive? type
<bootstrap> 2031 7253392 null live <internal>
0x517474f0 1 1760 null dead sun/reflect/DelegatingClassLoader@0x43f95d38
0x4f83f670 1 1744 0x4ebfb8e8 dead sun/reflect/DelegatingClassLoader@0x43f95d38
[...]
total = 287 10020 35889952 N/A alive=3, dead=284 N/A
这不是完整的转储,但是这样做可以让您进行一些调查.
This is not a full dump, but doing that is going to allow you to do some investigation.
我仍在寻找如何查找更多信息.
I am still looking on how to find more information.
这篇关于如何抛弃彼尔姆根(Permgen)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文