Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

How to add more RAM?


  • Please log in to reply
13 replies to this topic

#1

ShatteredOmens

Posted 26 February 2011 - 07:20 PM

i have plenty of ram but i dont know how to allocate it to my server. How do i do this?

Register or log in to remove.

#2

ShatteredOmens

Posted 26 February 2011 - 07:35 PM

BUMP!

#3

anorym
    anorym

    Tree Puncher

  • Members
  • 28 posts

Posted 26 February 2011 - 07:36 PM

ShatteredOmens said:

i have plenty of ram but i dont know how to allocate it to my server. How do i do this?


open note pad and copy/paste
next line for 1 gig
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

next line for 2 gig
java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

save and change extension from .txt to .bat

put in the same folder as your minecraft_server.jar file and double click on the .bat file, will start the server with that much ram.

#4

ShatteredOmens

Posted 26 February 2011 - 07:42 PM

it doesnt start the server. it just opens CMD and closes it

#5

anorym
    anorym

    Tree Puncher

  • Members
  • 28 posts

Posted 26 February 2011 - 07:44 PM

what's your system? are you using any mod or just a vanilla server? give more detail please

#6

ShatteredOmens

Posted 26 February 2011 - 07:46 PM

anorym said:

what's your system? are you using any mod or just a vanilla server? give more detail please

Windows 7 and im using bukkit. thats the only mod i have. and also im getting a 503 error when i try and log into my server now

#7

anorym
    anorym

    Tree Puncher

  • Members
  • 28 posts

Posted 26 February 2011 - 07:54 PM

ShatteredOmens said:

anorym said:

what's your system? are you using any mod or just a vanilla server? give more detail please

Windows 7 and im using bukkit. thats the only mod i have. and also im getting a 503 error when i try and log into my server now

you should give more detail when you ask questions. I don't have much experience with bukkit, i run mostly vanilla servers.

maybe that someone on bukkit forums can help you or someone else who have experience with bukkit

#8

ShatteredOmens

Posted 26 February 2011 - 07:57 PM

thanks man.

#9

dotnabox
    dotnabox

    Tree Puncher

  • Members
  • 39 posts

Posted 26 February 2011 - 08:03 PM

Here is the contents of my run.bat file for bukkit:

@echo off
"%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar
pause

-----

Change the 1024 to 2048 if you want to allocate more RAM.

#10

skittlesbt

Posted 26 February 2011 - 11:14 PM

Are you using a 32-bit or 64-bit versions on Windows 7?

Also, when there is a 503 error, it's typically when minecraft.net is down.

#11

ShatteredOmens

Posted 26 February 2011 - 11:22 PM

skittlesbt said:

Are you using a 32-bit or 64-bit versions on Windows 7?

Also, when there is a 503 error, it's typically when minecraft.net is down.


64 and thank for telling me how to use for ram

#12

dotnabox
    dotnabox

    Tree Puncher

  • Members
  • 39 posts

Posted 26 February 2011 - 11:55 PM

For 64 Bit use: "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar

#13

AVBaller14

Posted 28 July 2011 - 08:04 PM

View PostShatteredOmens, on 26 February 2011 - 07:42 PM, said:

it doesnt start the server. it just opens CMD and closes it
if you click on it and it is still just opening it and closing it really fast, then you need to go and click on the start orb and go to Computer and navigate to C:\Program Files (x86)\Java\ and then click on the jre folder that has a bunch of numbers after that. Then go into the bin folder and copy the path.Posted Image
Then you need to click on the start orb again and this time right click on Computer and click on properties. Then click on Advanced System Settings.Posted Image
Then click on Environment Variables.Posted Image
Then under System Variables, find Path and click Edit.Posted Image
Then hit the "Home" button on your keyboard and paste the path that you copied before, before anything else in the path variable.
BE SURE TO PUT IN A SEMICOLON ";" AFTER THE "N" IN BIN.
For example: C:\Program Files (x86)\Java\jre1.6.0_22\bin;
And thats it, now it should work!

#14

BlackMonarch

Posted 29 July 2011 - 08:12 AM

View Postdotnabox, on 26 February 2011 - 08:03 PM, said:

Here is the contents of my run.bat file for bukkit:

@echo off
"%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar
pause

That's odd. I was told to use this:

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE


Should I change it? I'm running XP Pro on an i7 with 3GB of memory. I'd like to devote 2.5 GB to Minecraft.
Attention, retards: "just ignore what you don't like", "just play 1.7.3", "just play creative", and "just quit" are NOT valid solutions. If you don't understand why, then you don't understand the issue at all, and need to STFU. Get it?