大网数据广告活动
服务器运维问答

Error Starting wildfly-10.0.0 on CentOS 7

· 52CE 我爱测

I have Install JDK 8 and wildfly-10.0.0 and when I try to start stat server using following command via terminal and getting following error. sudo /opt/wildfly/bin/./launch.sh Error Starting Wildfly in standalone mode. ==========…

问题原文

原帖链接 · Chaminda Bandara · CC BY-SA 3.0

I have Install JDK 8 and wildfly-10.0.0 and when I try to start stat server using following command via terminal and getting following error.

sudo /opt/wildfly/bin/./launch.sh

Error

Starting Wildfly in standalone mode.
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/wildfly

  JAVA: java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

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

已采纳解答

原帖链接 · HBruijn · CC BY-SA 3.0

JAVA: java
...
Unrecognized VM option 'MetaspaceSize=96M'

Your (default) java version does not recognise the JDK 8 specific option MetaspaceSize and borks before tripping over the MaxMetaspaceSize option it also won't recognize.

You might have different JDK's installed with the default pointing to a JDK 6 or 7 and should try setting an explicit path to the correct java binary for your JDK 8 install.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。