This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Heap dump Analysis questions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Heap dump Analysis questions" Watch "Heap dump Analysis questions" New topic
Author

Heap dump Analysis questions

Norris Watkins
Greenhorn

Joined: Feb 15, 2013
Posts: 1
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

Joined: Oct 02, 2003
Posts: 9946
    
    6

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?


Never ascribe to malice that which can be adequately explained by stupidity.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Heap dump Analysis questions
 
Similar Threads
prgramatically generating a heap dump
HeapDumpOnOutOfMemoryError
OutOfMemoryError debugging
Getting java.lang.outofmemoryexception
Spring web flow Out of Memory issue