系统相关
首页 > 系统相关> > java-JHAT无法分析内存转储

java-JHAT无法分析内存转储

作者:互联网

我有一个内存转储文件,JHAT提供以下消息,但我无法分析任何内容(因为未显示任何数据.

 Resolving 0 objects...

WARNING:  hprof file does not include java.lang.Class!

WARNING:  hprof file does not include java.lang.String!

WARNING:  hprof file does not include java.lang.ClassLoader!

这是否意味着hprof文件不完整或损坏?

我在用
-XX:HeapDumpOnOutOfMemoryError”
我的tomcat中的选项.

解决方法:

我只是通过自己的堆转储遇到了同样的问题.

> jhat显示您描述的警告,并且没有显示有用的数据
> Eclipse MAT抱怨NullPointerException
> VisualVM根本无法打开堆转储文件

当堆转储时没有足够的磁盘空间时,似乎发生这种情况,因此文件确实是不完整/损坏的.

http://forums.oracle.com/forums/thread.jspa?threadID=1175621&tstart=135

标签:tomcat,out-of-memory,jhat,java
来源: https://codeday.me/bug/20191105/1996084.html