• Cant allocate more ram to my server
    4 replies, posted
I am trying to host a server atm and my friends are complaining about lag I have created a .bat file with this in it "java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui" all though it just crashes instantly saying "java is not recognized as an internal or external command, operable program or a batch file.
put the full path to java, usually "C:\Program Files\Java\jre7\bin\java.exe" -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui
Still didn't work
Are you running 32bit or 64bit? I think if I remember correctly you may need to add d64 if you are on a 64bit OS. So try this: C:\Program Files\Java\jre7\bin\java.exe" -server -Xm[ram] -Xms[ram] -jar [jar file name] 64bit: C:\Program Files\Java\jre7\bin\java.exe" -server -d64 -Xmx[ram] -Xms[ram] -jar [jar file name]
Thanks it worked.
Sorry, you need to Log In to post a reply to this thread.