Possible Duplicate:
Java VisualVM Enable Heap Dump on OOME
I've got an App that crashes because of an OOME. I would like to create a dump file of the heap shortly before the App crashes. I used jdump
before to analyse the heap after a few hours of runtime, but nothing suspicious was found. I can run the app in some Eclipse profiler. Is there some way to create a heap dump shortly before a OOME is thrown on a server with a normal (or jdk) installation?