I want to remove specified JVM options in Tomcat by using commands. I have tried following commands but none of them were able to remove the option. For example, This one removes everything except specified one:
tomcat\bin>tomcat8 //US//tomcat8 --JvmOptions -XX:+HeapDumpOnOutOfMemoryError
This one seems to do nothing also did not throw any error:
tomcat\bin>tomcat8 //US//tomcat8 -JvmOptions -XX:+HeapDumpOnOutOfMemoryError
Is there any way to do this?
You could remove/change the JVM options by editing the Winidows Registry directly.
The java setting is stored within Windows registry, in entry jvm under:
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun2.0\YourChosenServiceName\Parameters\Java