How can i give my server more RAM

Discussion in 'Bukkit Help' started by JStylow, Sep 26, 2011.

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

    JStylow

    Hello, i have a question about how i can give my server more RAM...

    I host a decent server with about 12 players online at a time, and the server only uses a bit more then 1GB RAM, but sometimes usually when i open firefox/youtube the server crashes and i think because it cant handle that much at one time. I got 4GB of RAM so how can i make my server get the possibility to actually use more? It never gets to the 1.1GB of ram use...

    Thanks!
     
  2. Offline

    Sh8kezula

    Well..
    What Operating system do you use?
     
  3. Offline

    JStylow

    Windows 7 64Bit
     
  4. Offline

    Sh8kezula

    If you have java 64 installed. You can allocate more than 1 gig of ram to your server.

    In your run script you should see some thing that looks like this.

    -Xmx1024M -Xms1024M

    You can change those number values to reflect the amount of ram (In mb) you want to run the server with. (Must have java64 to run more than 1 gig)

    Things to remember.
    Windows 7 uses around 2 gigs of ram itself. Your browser also uses ram. I would give your server at max 2 gigs if not 1.5 gigs.
     
  5. Offline

    JStylow

    If Windows 7 uses around 2 gigs then why could i host a server myself with 8 people and 2 gb RAM? But i guess its java that isnt 64 bit altough i dont know how to change...
     
  6. Offline

    Sh8kezula

    http://java.com/en/download/manual.jsp
     
  7. Offline

    JStylow

    Done... But how do i check if my Java is 64BIT?
     
  8. Offline

    glbracer

    I'm running Windows XP Media Center x32 bit, any idea how to do this? :D
     
  9. Offline

    Nathan C

    Umm....you should not be hosting and playing off the same PC..ever..
     
  10. Offline

    vivanewvegas

    Yeah, Windows is WAY to slow to run a server. You should run it in Linux (like Ubuntu Server) or Windows Server. Both of these have no GUI (Graphic User Interface) wich will make your server run MUCH faster. But the only way that's all hoing to make a big difference is to upgrade your hardware or get a faster internet connection....
     
  11. Offline

    rocket2913

    when i click edit to my run .bat like u said to do to dedicate ram it says -Xmx6G would that 6 be then number of gb dedicated???
     
  12. Offline

    rocket2913

    this is what it looks like when i edit my run.bat





    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx6G -jar craftbukkit-1.1-R1.jar
    PAUSE
     
  13. Offline

    Decimat

    Yep thats 6gb alright. how much ram do you actually have? cause it might be dumping all this into virtual memory(which is much slower(harddrive) than your physical memory(RAM)) really a server running 10-30 players only needs about 3gb. I think someone did the math and its about 120mb per person on your server including you thats actually required. if you do have 6 or more gb of ram ide say drop that down to 3gb (-Xmx3G or -Xmx3072m) and then make a ramdisk "http://memory.dataram.com/products-and-services/software/ramdisk" of 512mb (that backs up every 10min) and that server will fly! download the free ramdisk as there is no reason for a ramdisk larger than 4gb for minecraft unless you have more than 3 worlds.
     
  14. Offline

    Fuzzlr

    I run a 16 gigabyte server off of Windows. Would it really be an issue, seeing as I have a lot of processing power anyways?
     
Thread Status:
Not open for further replies.

Share This Page