Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Server Arguments
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Rafii2198

Server Arguments

By Rafii2198, September 13, 2020 in Support & Bug Reports

  • Reply to this topic
  • Start new topic

Recommended Posts

Rafii2198    0

Rafii2198

Rafii2198    0

  • Tree Puncher
  • Rafii2198
  • Members
  • 0
  • 5 posts
Posted September 13, 2020

So I was trying to set up some 1.16 servers and as always I added -Xmx9216m to set more ram but when ever I launch the server it says something like "-X is unkown argument" but when removed - from -Xmx9216m it launches but I have no idea if it is working.
Did something changed in newer versions? It is first time I am setting 1.16 server, before I only set 1.12 and below servers...

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7624

diesieben07

diesieben07    7624

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7624
  • 55277 posts
Posted September 13, 2020

Show the complete command you used.

  • Quote

Share this post


Link to post
Share on other sites

Rafii2198    0

Rafii2198

Rafii2198    0

  • Tree Puncher
  • Rafii2198
  • Members
  • 0
  • 5 posts
Posted September 13, 2020

I usually use this in my 1.12 servers: 

java.exe -jar server.jar -Xmx9216M -Xms4096M nogui

 But when I used it in my 1.16 server console showed this:

[17:07:28] [main/FATAL] [minecraft/Main]: Failed to start the minecraft server
joptsimple.UnrecognizedOptionException: x 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:79) ~[?:?] {re:classloading}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] {}
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
	at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?] {}
	at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) ~[server.jar:32.0] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-6.1.1.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-6.1.1.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-6.1.1.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-6.1.1.jar:?] {}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-6.1.1.jar:?] {}
	at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [server.jar:?] {}
	at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) [server.jar:?] {}
	at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) [server.jar:?] {}

So I then I did this:
 

java -jar server.jar Xmx9216M Xms4096M nogui

And it launched, but I don't know if these Xmx and Xms are applied

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7624

diesieben07

diesieben07    7624

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7624
  • 55277 posts
Posted September 13, 2020

Any java parameters must come before the -jar.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Slimerr
      [1.8.9] Unrecognized option: -Xincgc when starting

      By Slimerr · Posted 55 minutes ago

      Started learning to code mods today immediately ran into this problem below is a screenshot of my eclipse not sure what else to say any help is appreciated
    • PacketNarc
      my 1.16.5 modded game crashes after a while of playing

      By PacketNarc · Posted 1 hour ago

      The best recommendation is to Remove all mods, add them back one at a time, play for a bit; until you discover what’s crashing your game.  simply dumping a bunch of mods into your folder without knowing how they interact usually ends up like this.    You also need to look at your latest.log while the game is loading and spot any errors or incompatibilities that occur during load.   
    • matthyit
      my 1.16.5 modded game crashes after a while of playing

      By matthyit · Posted 1 hour ago

      ok updating java didnt fix it, played for like 10 minutes and the game crashed; ok i tried now uploading the debug.log here as attachment but its been half an hour now and it wont upload, is there another way for me to upload it or something?
    • yzzw_
      Error

      By yzzw_ · Posted 1 hour ago

      I dont know how to fix this please help 
    • Maxi90909
      Forge 1.16.5 - 36.0.9 start up crash

      By Maxi90909 · Posted 2 hours ago

      OK Thank you. I had 2 Random Patches datas in my mods folder.
  • Topics

    • Slimerr
      0
      [1.8.9] Unrecognized option: -Xincgc when starting

      By Slimerr
      Started 55 minutes ago

    • matthyit
      6
      my 1.16.5 modded game crashes after a while of playing

      By matthyit
      Started 4 hours ago

    • yzzw_
      0
      Error

      By yzzw_
      Started 1 hour ago

    • Maxi90909
      4
      Forge 1.16.5 - 36.0.9 start up crash

      By Maxi90909
      Started 4 hours ago

    • Luis_ST
      22
      [1.16.5] Enchantments can Apply to all Tools

      By Luis_ST
      Started Yesterday at 07:21 AM

  • Who's Online (See full list)

    • Yuqera
    • Toma™
    • Liffy
    • totodu__59
    • ZØMB
    • mr_zuzi1238
    • forresttrump
    • MrLoop95
    • Slimerr
    • Sr. Qwertz
    • FunnySossageRole
    • Wyler
    • Tavi007
    • JellyFan2010
    • yaman45
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Server Arguments
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community