Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VM error while starting Wildfly (JBoss) server

Tags:

java

jboss

I have wildfly-10.0.0.Final available with PATH variable set. I am using Ubuntu. Also I have jdk1.7.0_79. I am facing the problem that as when I am trying to start server that is executing standalone.sh then I am getting the error,

Unrecognized VM option 'MetaspaceSize=96M' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

like image 556
Chirag Soni Avatar asked Feb 06 '16 17:02

Chirag Soni


2 Answers

Use jdk 1.8 instead of jdk 1.7. MetaspaceSize is a new flag added for Metaspace in jdk 1.8.

like image 200
Lukasz_Plawny Avatar answered Nov 17 '22 01:11

Lukasz_Plawny


Check java -version. If it is not java version "1.8.0_xx", then set the JAVA_HOME environment variable as below and run the command,

bash-4.1$ export JAVA_HOME=LOCATION_TO_JDK1.8.0

like image 31
Zeigeist Avatar answered Nov 17 '22 01:11

Zeigeist