JVM fails to start due to an unrecognized option error

Solution Verified - Updated -

Environment

  • Java

Issue

  • Our JVM is failing to start because of an unrecognized option error
  • We try to use the parameter -XX=+UseParallelGC but JBoss is not starting and throwing error Unrecognized 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=+UseParallelGC is 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.

Comments