Hello... i have a minecraft server, and my pc has 4gb ram but i don't know how to give more than 1GB(standard) of ram at my server !i've search everywhere but i can't find a tutorial for this... my server start with this command: @Echo OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar PAUSE i will give thanks reputation everything want the man what help me... P.s.: as you can see i don't speak english as well please i need help... EDIT by Moderator: merged posts, please use the edit button instead of double posting.
When you start you server, use "-Xmx4G" instead of "-Xmx1G". You can also use "-Xms" to set a minimum amount of RAM that your Minecraft server will use.
thanks for the reply man... now when i try to put more than 2GB of ram an error appear, and it say "Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the java virtual machine." Any solution ? I have 4gb ram on my pc and i don't understand the problem
32bit java can only support 1Gb RAM go here: http://forums.bukkit.org/threads/assigning-more-ram-to-a-server-guide.1432/
Hey my server says @ECHO OFF IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx2048M -Xms3072M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar" IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xmx2048M -Xms3072M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar" PAUSE Which im pretty sure is right but when i click it, it says Error occured during initialization of UM Incompatible minimum and maximum heap sizes specified Whats Wrong this really makes me mad
@Nevcraft -Xmx2048M = Maximum amount of RAM to use. -Xms3072M = Minimum amount of RAM to use. Well, 2048M < 3072M. Java does not little paradoxes Try swapping those to values like that: Code: @ECHO OFF IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx3072M -Xms2048M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar" IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xmx3072M -Xms2048M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar" PAUSE Edit: And you could get another problem because: I do not know if you have a 32bit OS but Code: IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)% [...] indicates that you use Java 32bit anyway.
Thanks Kiwi i have a 64 bit computer, just to let you know, my server will be amazing. How do you find out if you have a 32 bit java?
This is what i have for the run.bat Echo OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar PAUSE and everytime i change the Xmx1G to Xmx2G or 4G it doesnt work. I have a 64 bit computer and im using Java 6 also. How an i change my RAM?? Please help me
is 5120 the max amount of ram you can allocate? or is there a simple rule to follow in scaling up the amounts? I have a system with 32 gig of ram so i want to increase the potential
You can allocate as much as you want (Provided you still have enough for everything else (Windows/MAC OS, MC eg)). Just remember (If you didn't know), 1GB = 1024 MB So a server with 8GB RAM = 8192MB.