Cannot start JBoss EAP in domain mode after adding HeapDumpOnOutOfMemory
Issue
I added JVM arguments for generating a heap dump automatically but now I cannot start JBoss EAP in domain mode and I see this error:
[Server:server-one] Unrecognized VM option 'HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdumps/'
[Server:server-one] Did you mean '(+/-)HeapDumpOnOutOfMemoryError'?
[Server:server-one] Error: Could not create the Java Virtual Machine.
[Server:server-one] Error: A fatal exception has occurred. Program will exit.
16:51:47,222 INFO [org.jboss.as.process.Server:server-one.status] (reaper for Server:server-one) JBAS012010: Process 'Server:server-one' finished with an exit status of 1
I have added this to my domain mode host.xml:
<option value="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdumps/"/>
Environment
- Red Hat JBoss Enterprise Application Platform
- 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.