This content has been marked as final. Show 2 replies
1 person found this helpful
Rajiv wrote:There is no performance overhead while the application is running.
There's a JVM startup option called '-XX:+HeapDumpOnOutOfMemoryError' which I have permanently added to my application start-up.
whether or not using this option has any performance overhead in normal scenario.
It's simply a flag to catch a snapshot of the heap at that OutOfMemoryError-moment, where performance would be the least of your concerns.