JVM fails to start due to an unrecognized option error
Environment
- Java
Issue
- Our JVM is failing to start because of an unrecognized option error
- We try to use the parameter
-XX=+UseParallelGCbut JBoss is not starting and throwing errorUnrecognized option: -XX=+UseParallelGC. What could be cause of the issue?
Resolution
- The error should indicate the problem option; remove this from your java arguments. Double check its spelling and syntax and verify that it is indeed a valid option for your particular JVM version.
- The option
XX=+UseParallelGCis wrong.The correct option is-XX:+UseParallelGC.So use this option instead.
Root Cause
- The JVM was given some parameter at start up that is not recognized
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
