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

Heap dump Analysis questions

 
Norris Watkins
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a heap dump file to analyze. ( produced by –XX:+HeapDumpOnOutOfMemoryError )
1. Is ther any way to get teh timestamp at which heap was dumped ?
2. I would also like to get the complete command line arguments for the JVM that dumped the heap

I tried both jhat & jvisualvm without much luck

3. What is the possibility that a heap file ( java_pidNNNN.hprof ) will be generated with –XX:+HeapDumpOnOutOfMemoryError, when there was no OutOfMemoryError ?
( I have 6 heap files generated for a JVM. However looking at the server log, I can only see one instance of OutOfMemoryError )



Does anybody know ?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12123
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know a thing about HeadDumpOnOutOfMemory, but if it creates a file, every file I've ever seen has a date/timestamp of when it was created (or last modified). Can't you do a dir/ls and see when it was created?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic