Schildmeijer
Schildmeijer

Reputation: 20946

enable HeapDumpOnOutOfMemoryError in runtime

according to http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/clopts.html it should be possible to enable -XX:+HeapDumpOnOutOfMemoryError using JConsole in runtime. How?

I assume its somewhere under MBeans tab and the com.sun.management -> HotSpotDiagnostic -> Operations -> setVMOptions ?

Upvotes: 6

Views: 2321

Answers (1)

Csaba_H
Csaba_H

Reputation: 8245

Yes, you have to use the setVMOption with "HeapDumpOnOutOfMemoryError" as p0 and "true" as p1 parameter according to the Monitoring and Managing Java SE 6 Platform Applications.

Upvotes: 14

Related Questions