Cannot get the server to use more than 1GB of memory.

    Joined
    Aug 18, 2013
    Messages
    23
    Reaction score
    0
    • Legacy Citizen
    Hey guys, I am running a dedicated server (starting by running the batch file), building a project for a server event we have planned. The problem is that the server is running out of memory. It refuses to use more than 1,035,520KB (the memory info in the upper left) and garbage collection isn't happening fast enough before it is running out of memory.



    The server startup file is set to the following-


    java -Xms2048m -Xmx4096m -Xincgc -Xshare:eek:ff -jar StarMade.jar -server




    Yet despite of this, the server starts with 128KB of memory and maxes out at ~1GB, as if it doesn't care about the java parameters. When the server starts, the top line referances those exact parameters.

    Any suggestions?



    Edit: I have 16GB of RAM, and a 64bit OS and 64bit java if you are wondering.
     
    Joined
    Jun 24, 2013
    Messages
    518
    Reaction score
    0
    What happens if you modify the values in the launcher and start it from there?
     
    Joined
    Aug 18, 2013
    Messages
    23
    Reaction score
    0
    • Legacy Citizen
    That worked! Thank you



    Thats... odd why it wouldn\'t work though.
     
    Joined
    Jul 5, 2013
    Messages
    372
    Reaction score
    0
    If you edit the .bat file, then you have to start the server from .bat file too, not from starmade launcher.