1.16.5 server opening gui with nogui argument
Hey guys im trying to set up a forge 1.16.5 server and for some reason this specific server keeps starting a gui when no other server on the same machine does. hosting on ubuntu server 22.04.4 LTS. My run.sh is
"/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" -jar -Xms1G -Xmx50G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -server -jar forge-1.16.5-36.2.34.jar nogui. Any help is greatly appreciated!
19 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by awesomeel218#0
nogui
➡️ -nogui
[04:19:11] [main/FATAL] [minecraft/Main]: Failed to start the minecraft server
joptsimple.UnrecognizedOptionException: o is not a recognized option
at joptsimple.OptionException.unrecognizedOption(OptionException.java:108) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParser.validateOptionCharacters(OptionParser.java:633) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParser.handleShortOptionCluster(OptionParser.java:528) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParser.handleShortOptionToken(OptionParser.java:523) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:59) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParser.parse(OptionParser.java:396) ~[jopt-simple-5.0.4.jar:?] {}
at net.minecraft.server.Main.main(Main.java:78) ~[?:?] {re:classloading,re:mixin,pl:mixin:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_412] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_412] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
can u share ur startup script
put it in a code block, or share the actual file
use 3 of these
`
so its like
isnt it —nogui? instead of a single -
[06:31:41] [main/FATAL] [minecraft/Main]: Failed to start the minecraft server
is not a recognized optiononException: nogui
at joptsimple.OptionException.unrecognizedOption(OptionException.java:108) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56) ~[jopt-simple-5.0.4.jar:?] {}
at joptsimple.OptionParser.parse(OptionParser.java:396) ~[jopt-simple-5.0.4.jar:?] {}
at net.minecraft.server.Main.main(Main.java:78) ~[?:?] {re:classloading,re:mixin,pl:mixin:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_412] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_412] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_412] {}
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_412] {}
at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) ~[forge-1.16.5-36.2.34.jar:36.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {}
at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [forge-1.16.5-
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
message.txt
Requested by awesomeel218#0
i took out the arguments but they dont seem to make a difference
its so weird
no dash and the server boots with gui, 1 dash o isnt a recognised option. 2 dash nogui isnt a recognized option
and this is my only server that does this
ur on a linux machine right?
Yes
And sorry for any late reply’s hurricane Beryl came through today and left 2.7 million people without power including me
finally got power back
anyone got any ideas?
does ur machine have 50g lmao
also never use 50gb on a minecraft server lol... 16 is plenty. modded mineraft lags cause of shitty cpus, not low memory
u can actually cause more lag by giving ur server 50gb
Yea the machine got 128gb
Good to know I’ll lower it
I like to give it a lot cause I’ve had servers use over 20gb of ram before
yeah well
Realistically that won’t happen for most servers and going over 12GB causes GC issues most of the time (~16 for big modpacks)
Is there any way to help that with jvm flags?
Cause I’ve had modded servers use a lot of ram before
aikar flags
that’s usually it
Ok I usually use those
You can try things like GraalVM which apparently has pauseless GC but not sure if community edition has it, or only enterprise
I’ll have to take a look :)
Have totally no reason why
But starting the server from my phones ssh connection seems to fix the issue