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 中的选项。
I have a Memory Dump file and JHAT gives the following message and I cannot analyze anything (as no data is displayed.
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!
Does this mean the hprof file is incomplete or corrupt?
I am using-XX:+HeapDumpOnOutOfMemoryError"
option in my tomcat.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚在自己的堆转储中遇到了同样的问题。
NullPointerException
看起来这种情况发生在没有足够的磁盘空间时转储堆的时间,因此文件确实不完整/损坏。
http://forums.oracle.com/forums/thread.jspa ?threadID=1175621&tstart=135
I just came across this same issue with my own heap dump.
NullPointerException
It looks like this happens when there is not enough disk space at the time that the heap is dumped, so the file is indeed incomplete/corrupt.
http://forums.oracle.com/forums/thread.jspa?threadID=1175621&tstart=135
我今天也有同样的问题。为了澄清这一点,我使用的选项
heap=sites
与内存转储不同。我还从jhat
和jvisualvm
收到相同的消息。jhat
可能不支持读取heap=sites
模式创建的HPROF
文件。I have the same problem today. To clarify, I am using the option
heap=sites
which is different than a memory dump. I also get the same messages fromjhat
andjvisualvm
. It is possible thatjhat
does not support readingHPROF
files created byheap=sites
mode.