in base a http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/clopts.html dovrebbe essere possibile abilitare -XX: + HeapDumpOnOutOfMemoryError utilizzando JConsole in runtime. Come?abilita HeapDumpOnOutOfMemoryError in runtime
Presumo che si trovi da qualche parte nella scheda MBeans e in com.sun.management -> HotSpotDiagnostic -> Operazioni -> setVMOptions?