I have made a minecraft vannillla server. At Random times the server will close. I looked at the logs and it keeps saying cant keep up. I though maybe I need to add more ram to the server. So I made a bat launcher in my minecraft server folder and put this in it
java -Xms2048M -Xmx2048M -jar minecraft_server.jar nogui
When I click run it says unable to access minecraft_server.jar
I have researched the problem and ever thing is either saying that the server runner isn't named the same as in the bat line or the videos and web pages all are about bukkit servers. PLEASE HELP ME!
make sure your jar file matches the one you are trying to start in your start up script and that they are in the same folder if you are having lag issues then make sure you add the rest of the java arguments so make sure your server is fully configured.
Quick note don't set your min ram the same as your max about 512MB would be a good starting point
your start up script is the .bat or .sh file used to start your server. As to what arguments that need to be entered that depends on your system, hardware and server type. same as you would enter them in your minecraft client
That may not be "optimized", but I wouldn't really call it incomplete. That's just the base switches to run the server. I've ran my servers for years with just those switches. I tried all that extra junk in the past, but didn't see any noticeable difference so I keep it simple now.
Is the batch file in the same folder that the server is in? Is the name of the server's JAR file "minecraft_server.jar"? I doubt that, it doesn't follow their standard naming convention. If you downloaded it recently, the file name would be minecraft_server.1.11.2.jar. Check the actual name of the JAR file and edit the run.bat to reflect that.
Well I did make the server recently. I didn't download the server file from minecraft.net I downloaded it from mc versions. Mc verisions allowed me to get the 1.8 minecraft server version instead of the 1.11.2 version. The name of the file was server, but then I changed it to minecraft_server.jar once i found out I was having this problem. It is in the same folder.