Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

have a .hprof file. Now what?

 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The production tomcat server ran out of memory and dumped a .hprof file. Yippie a crash dump.
But it is a binary file.

How do I spit out in human readable format what is in my hprof file???
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst(←click). Thanks!

https://www.google.com/search?q=how+to+read+hprof+file
 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have looked at the eclipse tool and jhat.


Jhat dump_file - starts a web server at port 7000 and shows none of my classes. the only thing is shows is that there was 7 instances java.lang.Class, zero instance of java.lang.String

VisualVM won't even load it.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic