Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unrecognized VM option '+HeapDumpOnCtrlBreak'

I'm using Jboss and I added -XX:+HeapDumpOnCtrlBreak option to JAVA_OPTS. But I got the error when starting Jboss:

Unrecognized VM option '+HeapDumpOnCtrlBreak'
Could not create the Java virtual machine.

I've searched on the net and it seems JDK 6 doesn't support this option so I changed to jdk1.5.0_09 but still got this error.

Does anyone know what's wrong?

like image 381
Grant Zhu Avatar asked Dec 28 '22 04:12

Grant Zhu


1 Answers

the option doesn't work even on JDK 1.7 update 25:

>>java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b16)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

>>java -XX:+HeapDumpOnCtrlBreak
Unrecognized VM option 'HeapDumpOnCtrlBreak'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
like image 125
RRM Avatar answered Jan 17 '23 08:01

RRM