Not able to add RAM to server

Discussion in 'Bukkit Help' started by sirtinman11, Jan 1, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    sirtinman11

    I have been searching a trying hundreds of different batch files that all will launch bukkit and will start the server but every time the server starts no matter what batch file I use It still only uses 256M of RAM. This is the batch file I use right now.
    Echo OFF
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    This starts the server but it always says this in the beginning
    "Picked up _JAVAOPTIONS: -Xmx256m -Xms256m"

    I need more RAM than that given to the server and don't get where it is getting that setting. please help.
     
  2. Offline

    phillmac

    I'm guessing because you are talking about batch files you are running windows?
    Did a quick Google on _JAVAOPTIONS and came up with this page
    http://stackoverflow.com/questions/17781405/information-about-java-options
    also this one
    http://www.coderanch.com/t/612439/java/java/JAVA-OPTIONS
    It seems to point to those values coming from an environment variable somewhere. To check this open the command prompt, type "set" and press enter. It should list all your environment variables. Note as per the link it might be listed under "_JAVA_OPTIONS" or "JAVA_OPTS". If any of those are present the chances are that may be causing your problem. to fix it use the set _JAVA_OPTIONS ="some options" command at the start of your batch file to clear the variable, where "some options" is what options are listed currently in set with out the -Xmx and -Xms options. Alternatively change the -Xmx and -Xms in set to be 1024M. Hope this helps
     
  3. Offline

    sirtinman11

    Sure enough I found "_JAVA_OPTIONS=-xmx256m -Xms256m"
    I tried what you said to do without any results so if you could write the batch file text since you know what
    JAVA OPTIONS is now that'd be awesome so I can make sure I'm not doing anything wrong. Also would there be any reason why I can't just delete that path? Let me know, Thanks!
     
  4. Offline

    phillmac

    The Microsoft support website says to do this if you want to get rid of the env variable permanently: >Link<
    .
    Here are two batch files you could use:
    Code:
    @Echo OFF
    SET JAVA_OPTIONS=
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    OR

    Code:
    @Echo OFF
    SET JAVA_OPTIONS="-Xmx1024M -Xms1024M"
    java -jar craftbukkit.jar
    PAUSE
    Hope this helps
     
Thread Status:
Not open for further replies.

Share This Page