Allocating more memory to an existing mac server

Discussion in 'Bukkit Help' started by dragogal04, Jan 22, 2012.

Thread Status:
Not open for further replies.
  1. Hi bukkit!

    first of want to say thanks for an awesome tool, it saved our ass more than you can know!

    anyway, i have a bukkit server set up with plugins and fairly fast more and more players are coming online and i know inevitably i will need to add more memory to the server, my only question is how.

    Many thanks,

    Drago
     
  2. Offline

    Hadukun

    Hi there!

    From the title of your thread I'm guessing you have an Apple computer. I myself have one.
    Allocating RAM is quite simple.

    Here's a little tutorial on how to make a start up command (since I don't really know how you want to do it ill do it from scratch).

    1. Obtaining startup script
      To easily start the server you will need a startup script. The following is a basic server script to start your server.
      1. Open up TextEdit and paste the following in
        #!/bin/bash
        cd "$( dirname "$0" )"
        java -server -Xmx2G -jar ./craftbukkit.jar
      2. Save the file
        Save it in your CraftBukkit folder as start_server.command
      3. Allow the script to run
        1. Open up Terminal.app
        2. Type into Terminal.app
          chmod +x
          Warning: Do not hit return
        3. drag the start_server.command into Terminal.app
        4. hit return
    2. Starting the server
      From this point on you can start the server by double-clicking start_server.command.
      You will need to run the server once for it to generate some configuration files.
      Warning:
      To stop the server, do not close the terminal/command prompt window. Instead, type 'stop' into the console. Closing the terminal window without stopping the server could lead to corruption of the save files.



      Code:
      Open up TextEdit and paste the following in
      #!/bin/bash
      cd "$( dirname "$0" )"
      java -server -Xmx2G -jar ./craftbukkit.jar
      ^That there is the RAM part. Look where it said -Xmx2G, that 2G means two gigabytes of RAM (Random Access Memory). You can replace this with whatever you want. 2G is definitely enough for 10 people or so.
      Based on my experiences.


      Thanks.
     
Thread Status:
Not open for further replies.

Share This Page