I am running Win7 x64 and java x64. I am trying to allocate 8 Gigs ot the server and I have the server on a ramdisk of another 4gigs. Is this the right run.bat file script??? @ECHO OFF SET BINDIR=%~dp0 "%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx8192M -jar "%BINDIR%\craftbukkit-0.0.1-SNAPSHOT.jar" PAUSE
Yep, that should work. Also, you can set a minimum amount of RAM to be used too. Just replace the Xingc with Xms7G and it will allocate 7-8 gigs dedicated for the server.
ok so i tryed that and for some reason it says it cant find the file. even when they are in the same folder
You must have added in a space accidentally or something. BTW, instead of putting the entire java location, you can just type this: java so that line should look like this: java -Xmx10G -Xms6G -jar "%BINDIR%\craftbukkit-0.0.1-SNAPSHOT.jar"
Heres Mine, Echo OFF SET BINDIR=%~dp0 "%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx4096M -jar "%BINDIR%\craftbukkit-1.1-R3.jar" PAUSE