Error Unrecognized VM option 'UseParNewGC' in JDK11
Issue
When I set the combination of options -XX:+UseConcMarkSweepGC
and -XX:+UseParNewGC
in an application that has been upgraded from JDK8 to JDK11, JVM will not start with the following error message. Is option -XX:+UseParNewGC
not available in JDK11?
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Environment
- OpenJDK
- 11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.