You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to start the server, it would say Starting server... Done. but it doesn't actually start. Because java doesn't even start up, nothing is sent to the log file which made it very confusing on why it was failing.
When manually running the command, I am shown the actual error message
$ java -Xms2048M -Xmx2048M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -jar /opt/msm/servers/foo/server.jar nogui
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Unrecognized VM option 'CMSIncrementalPacing'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
This is on a fresh install of Ubuntu 18.04.1 Server with apt install default-jdk and apt install default-jre installing Java v10.0.2.
# java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)
When I ran the command again but without the -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing arguments, the server started up without issue.
Since Java 10 is now the default version, it is likely more people are going to encounter this issue.
Suggestions:
Check the java version and if it is >9 then don't use these options.
The as_user function should log a message if the su command fails
The as_user function or the server_start function should capture stderr to the log when trying to start the server just in case there are problems like this.
The text was updated successfully, but these errors were encountered:
Apparently "[t]he CMS collector is deprecated as of JDK 9" according to Oracle, so it might be better to check if Java version is 8 to use -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing.
Java 8_161 is still the minimum supported version for Minecraft, otherwise I'd suggest just removing the CMS related flags.
The default java invocation uses unrecognized (CMSIncrementalPacing) and deprecated (UseConcMarkSweepGC) VM options under Java 10
From the /etc/msm.conf file
When trying to start the server, it would say
Starting server... Done.
but it doesn't actually start. Because java doesn't even start up, nothing is sent to the log file which made it very confusing on why it was failing.When manually running the command, I am shown the actual error message
This is on a fresh install of Ubuntu 18.04.1 Server with
apt install default-jdk
andapt install default-jre
installing Java v10.0.2.When I ran the command again but without the
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing
arguments, the server started up without issue.Since Java 10 is now the default version, it is likely more people are going to encounter this issue.
Suggestions:
su
command failsThe text was updated successfully, but these errors were encountered: