JHAT cannot parse memory dump

I have a memory dump file and JHAT gives the following message and I can not parse anything (since the data is not 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 that the hprof file is incomplete or corrupt?

I am using an -XX:+HeapDumpOnOutOfMemoryError" option in my tomcat.

+3
source share
2 answers

I just stumbled upon the same issue with my own heap dump.

  • jhat shows the warnings you are describing and there is no useful data displayed
  • Eclipse MAT complains about NullPointerException
  • VisualVM cannot open heap dump file at all

, , , , , /.

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

+4

. , heap=sites, . jhat jvisualvm. , jhat HPROF, heap=sites.

0

Source: https://habr.com/ru/post/1782108/


All Articles