Location of Java dump heap file?

Posted by Jim Ferrans on Stack Overflow See other posts from Stack Overflow or by Jim Ferrans
Published on 2010-04-28T00:59:18Z Indexed on 2010/04/28 1:03 UTC
Read the original article Hit count: 1056

Filed under:
|
|
|

Well this is embarrassing ...

I'm starting to play with the Eclipse Memory Analyzer to look for Java memory leaks on a Windows box. Step 1 is to obtain a heap dump file. To do this< I start my Java (javaw.exe) process from within Eclipse and connect to it with jconsole. Then on the jconsole MBeans tab I click the dumpHeap button. The first time I did this, I saw a pop-up saying it had created the heap dump file, but not giving its name or location. Now whenever I do a dumpHeap again while connected to a different javaw.exe process, jconsole says:

Problem invoking dumpHeap : java.io.IOException: File exists

and of course doesn't give its name or path. Where could it be?

I've searched my C: drive (using cygwin command line tools) for files containing "hprof" or "java_pid" or "heapdump" and didn't find anything plausible. I've even used the Windows search to look for all files in my Eclipse workspace that have changed in the last day.

I'm using the Sun Java 1.6 JVM, and don't have -XX:HeapDumpPath set.

© Stack Overflow or respective owner

Related posts about java

Related posts about jconsole