1

I've got a little problem while installing torquebox on a Ubuntu 16.04 Server. The installation it self was easy, but now, when I wan to start the torquebox server with "torquebox run" I'm getting the error:

[WARNING] root-knob.yml has not been deployed. Starting TorqueBox anyway. Booting AS7 from configuration /opt/torquebox-current/jboss/standalone/configuration/standalone.xml /opt/torquebox-current/jboss/bin/standalone.sh -Djruby.home=/opt/torquebox-3.2.0/jruby --server-config=standalone.xml JAVA_OPTS already set in environment; overriding default settings with values: -Xms64m -Xmx768m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

JBoss Bootstrap Environment

JBOSS_HOME: /opt/torquebox-current/jboss

JAVA: java

JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m -Xmx768m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

Unrecognized VM option 'MaxPermSize=256m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. root@h2657400:~#

So I have no idea what to do now. Installed is torquebox 3.2 and Java Version 9-Internal (preinstalled on server). Does anyone has had the same problem and knows how to solve it? I would appreciate that!

4

1 回答 1

1

我相信这MaxPermSize不再是 Java 9 的合法选择,所以这会触发你的错误。您可以修改/opt/torquebox-current/jboss/bin/standalone.sh以删除该MaxPermSize选项,但我怀疑由于 TorqueBox 本身与 Java 9 之间的不兼容,您会遇到其他问题。如果可能,我建议切换回 Java 8。

于 2017-02-04T03:15:23.487 回答