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
@echo off
java -Xms2048M -Xmx2048M -jar minecraft_server.jar nogui
pause
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.
You need to rename it. You have it named minecraft_server.jar.jar. Windows hides extensions by default, so it should look like "minecraft_server" and that's it.
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
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
They do match and what do you mean add the rest of the java arguments?
the arguments to tell java what hardware java is using and to tweak settings for the server type etc they are the same that you enter in your client
So how do I add the rest of the arguments
just enter them in your startup script just like you do in your client
whats a startup script and what scripts do I enter
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
I dont use a .bat to start my server I use the minecraft _Jar
you posted a incomplete start up script in your first post
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.
So how exactly do I fix my problem
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.
Post a screenshot of the contents of the server folder.
Here it is!
You need to rename it. You have it named minecraft_server.jar.jar. Windows hides extensions by default, so it should look like "minecraft_server" and that's it.
It still didn't work!
Show us what's in your batch file and show us the files in the server folder now that you've renamed the jar.
here