My problem is getting my vanilla localhost server to use 2gb of RAM, up from the 100mb. I've created the .bat file, it launches the server but it doesn't show an allocation of 2gb, just the standard 100mb. I've tried everything I could find from these forums, youtube videos, and other sources but nothing seems to work. Can you help me at all? Specs below.
I did and it launches the Command Prompt, not the actual server. In the Prompt it gives me the warning "Can't keep up! Did the system time change or is the server overloaded?"
When I try to launch the server it tells me that another server is already running and can't bind. Inside the game it gives me an allocated memory of 910MB, not even a full GB.
Is there something else I should be doing?
EDIT: Is the Prompt taking over the role of the Java server in this case?
Good News... You're experiencing the "feature" of the command prompt... or not.
In order to start a process from a .BAT file, you need to tell Windows that's what you want to do, otherwise it has a tendancy to close your app when the .bat file exits.
From the command prompt, type "help start" for more information regarding the command.
Notice that I've added the "/HIGH" switch... this will increase the priority for the Windows task... important for a game server to have.
START "MineCraft Rocks Are Pixelating" /HIGH java.exe -Xms2048M -Xmx2048M -jar minecraft_server.jar nogui
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe nogui
in order to use the memory parameters, you'll need to download the .jar file instead of the .exe file from http://www.minecraft.net/download
You'll be able to then use
START "MineCraft Server Rocks Pixels" /D N:\Downloads /HIGH java -Xmx4G -Xms4G -jar minecraft_server.jar nogui
The frustrating thing is the gui issue, a DOS window with the game output pops up when using the .jar file and "nogui"
If you're looking for a true "nogui" option, it looks like the .exe is the only Windows solution, but I can't find any memory switch references for additional ram (beyond the 100MB default)
If you received an error regarding that you cannot bind ports, you already have the server running (probably in the background). Open up task manager and kill all java.exe processes before starting the server again.
If you get Can't keep up! errors, it's not always related to RAM memory, since RAM has very little impact on the speed of your computer. Your CPU is probably maxed out from running the server. What kind of processor do you have?
Good News... You're experiencing the "feature" of the command prompt... or not.
In order to start a process from a .BAT file, you need to tell Windows that's what you want to do, otherwise it has a tendancy to close your app when the .bat file exits.
From the command prompt, type "help start" for more information regarding the command.
Notice that I've added the "/HIGH" switch... this will increase the priority for the Windows task... important for a game server to have.
START "MineCraft Rocks Are Pixelating" /HIGH java.exe -Xms2048M -Xmx2048M -jar minecraft_server.jar nogui
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe nogui
in order to use the memory parameters, you'll need to download the .jar file instead of the .exe file from http://www.minecraft.net/download
You'll be able to then use
START "MineCraft Server Rocks Pixels" /D N:\Downloads /HIGH java -Xmx4G -Xms4G -jar minecraft_server.jar nogui
The frustrating thing is the gui issue, a DOS window with the game output pops up when using the .jar file and "nogui"
If you're looking for a true "nogui" option, it looks like the .exe is the only Windows solution, but I can't find any memory switch references for additional ram (beyond the 100MB default)
I generally don't have to set a priority for my servers, and you can modify the priority on running processes with much more ease in the task manager. And, you don't actually need the .jar version of the server since both the exe and jar are just packaged classes.
As much as commandline can be, my friend, GUI is always easier and more friendly.
Good News... You're experiencing the "feature" of the command prompt... or not.
In order to start a process from a .BAT file, you need to tell Windows that's what you want to do, otherwise it has a tendancy to close your app when the .bat file exits.
From the command prompt, type "help start" for more information regarding the command.
Notice that I've added the "/HIGH" switch... this will increase the priority for the Windows task... important for a game server to have.
START "MineCraft Rocks Are Pixelating" /HIGH java.exe -Xms2048M -Xmx2048M -jar minecraft_server.jar nogui
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe nogui
in order to use the memory parameters, you'll need to download the .jar file instead of the .exe file from http://www.minecraft.net/download
You'll be able to then use
START "MineCraft Server Rocks Pixels" /D N:\Downloads /HIGH java -Xmx4G -Xms4G -jar minecraft_server.jar nogui
The frustrating thing is the gui issue, a DOS window with the game output pops up when using the .jar file and "nogui"
If you're looking for a true "nogui" option, it looks like the .exe is the only Windows solution, but I can't find any memory switch references for additional ram (beyond the 100MB default)
If you received an error regarding that you cannot bind ports, you already have the server running (probably in the background). Open up task manager and kill all java.exe processes before starting the server again.
If you get Can't keep up! errors, it's not always related to RAM memory, since RAM has very little impact on the speed of your computer. Your CPU is probably maxed out from running the server. What kind of processor do you have?
I generally don't have to set a priority for my servers, and you can modify the priority on running processes with much more ease in the task manager. And, you don't actually need the .jar version of the server since both the exe and jar are just packaged classes.
As much as commandline can be, my friend, GUI is always easier and more friendly.
My CPU is a 2.27 intel dual core and shouldn't be maxing out on the server at all. So the .jar won't help me at all over the .exe here?
I tried using the "START" command and it did change what happened but I still can't designate a gig of RAM to the server. I even switched out the .exe with the .jar and was getting the same result.
Where are you going to run the server? In your documents? Desktop? In a folder on the Desktop or Documents? Are you using Windows 7 or Vista? I'll build the .Bat code for you.
Where are you going to run the server? In your documents? Desktop? In a folder on the Desktop or Documents? Are you using Windows 7 or Vista? I'll build the .Bat code for you.
Alright I did but had to alter the amount of RAM I used to 2G, using max RAM would crash my system. I launch the server and everything seems to be working but in game I have a % used of 991MB and total allocated of 991MB and drops while in game over time. Any idea why?
I also get a warning message in the server window saying the server can't keep up and the "Allotted: 100% (###)" keeps dropping.
These don't work. The Command Prompt shows up for s split second then disappears. I'm running a 64 bit version of Java and even adjusted to account for that but I still got the same result for both .jar and .exe.
I did and it launches the Command Prompt, not the actual server. In the Prompt it gives me the warning "Can't keep up! Did the system time change or is the server overloaded?"
When I try to launch the server it tells me that another server is already running and can't bind. Inside the game it gives me an allocated memory of 910MB, not even a full GB.
Is there something else I should be doing?
EDIT: Is the Prompt taking over the role of the Java server in this case?
Open up notepad, copy and paste the code below into notepad.. Then save it as Server.bat
Then move the "Server.bat" file into the same folder as the minecraft server
@echo off
SetLocal EnableDelayedExpansion
If exist "minecraft_server.jar" Set "Launcher=minecraft_server.jar"
If exist "Minecraft_Server.exe" Set "Launcher=Minecraft_Server.exe"
"%Programfiles(x86)%\Java\jre7\bin\java.exe" -Xms512M -jar "%~dp0\%Launcher%"
exit
My problem is getting my vanilla localhost server to use 2gb of RAM, up from the 100mb. I've created the .bat file, it launches the server but it doesn't show an allocation of 2gb, just the standard 100mb. I've tried everything I could find from these forums, youtube videos, and other sources but nothing seems to work. Can you help me at all? Specs below.
Windows:
64bit
4GB RAM
2.27GHz CPU
Java:
7.4 for 64bit
.bat Code:
"C:\Program Files\Java\jre7\bin\javaw.exe" -Xmx2G -Xms2G -jar "Minecraft_Server.exe"
javaw -Xmx2048M -Xms2048M -jar "C:\Users\Dr. Chaos\My Documents\Minecraft\Server\Minecraft_Server.exe"
These are run separately just to see if either would work properly. Neither do. Anything that could help would be much appreciated.
Make this the only code in your .bat file.
I moderate these forums as much as I can despite not being a moderator.
I strongly support:
Better clouds
Natural Disasters
More uses for The Nether
I did and it launches the Command Prompt, not the actual server. In the Prompt it gives me the warning "Can't keep up! Did the system time change or is the server overloaded?"
When I try to launch the server it tells me that another server is already running and can't bind. Inside the game it gives me an allocated memory of 910MB, not even a full GB.
Is there something else I should be doing?
EDIT: Is the Prompt taking over the role of the Java server in this case?
In order to start a process from a .BAT file, you need to tell Windows that's what you want to do, otherwise it has a tendancy to close your app when the .bat file exits.
From the command prompt, type "help start" for more information regarding the command.
prefix your command with "Start":
example--> START "Title" /D C:\StartupDirectory /HIGH app.exe [parameter list]
Notice that I've added the "/HIGH" switch... this will increase the priority for the Windows task... important for a game server to have.
START "MineCraft Rocks Are Pixelating" /HIGH java.exe -Xms2048M -Xmx2048M -jar minecraft_server.jar nogui
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe
or
START "MineCraft Rocks Are Pixelating" /HIGH Minecraft_Server.exe nogui
in order to use the memory parameters, you'll need to download the .jar file instead of the .exe file from http://www.minecraft.net/download
You'll be able to then use
START "MineCraft Server Rocks Pixels" /D N:\Downloads /HIGH java -Xmx4G -Xms4G -jar minecraft_server.jar nogui
The frustrating thing is the gui issue, a DOS window with the game output pops up when using the .jar file and "nogui"
If you're looking for a true "nogui" option, it looks like the .exe is the only Windows solution, but I can't find any memory switch references for additional ram (beyond the 100MB default)
If you get Can't keep up! errors, it's not always related to RAM memory, since RAM has very little impact on the speed of your computer. Your CPU is probably maxed out from running the server. What kind of processor do you have?
I generally don't have to set a priority for my servers, and you can modify the priority on running processes with much more ease in the task manager. And, you don't actually need the .jar version of the server since both the exe and jar are just packaged classes.
As much as commandline can be, my friend, GUI is always easier and more friendly.
Thanks I'll give this a try.
My CPU is a 2.27 intel dual core and shouldn't be maxing out on the server at all. So the .jar won't help me at all over the .exe here?
Where are you going to run the server? In your documents? Desktop? In a folder on the Desktop or Documents? Are you using Windows 7 or Vista? I'll build the .Bat code for you.
Windows 7, Documents/minecraft/server
I gave this code a go and it said that it could not launch the jar file I designated. Do I need to change a line somewhere?
Alright I did but had to alter the amount of RAM I used to 2G, using max RAM would crash my system. I launch the server and everything seems to be working but in game I have a % used of 991MB and total allocated of 991MB and drops while in game over time. Any idea why?
I also get a warning message in the server window saying the server can't keep up and the "Allotted: 100% (###)" keeps dropping.
.Jar Server Code
@"%Programfiles(x86)%\Java\jre7\bin\java.exe" -Xms512M -jar "%Homepath%\Documents\minecraft\server\minecraft_server.jar"
.Exe Server Code
@"%Programfiles(x86)%\Java\jre7\bin\java.exe" -Xms512M -jar "%Homepath%\Documents\minecraft\server\Minecraft_Server.exe"
Try those codes.. and see if they work..
These don't work. The Command Prompt shows up for s split second then disappears. I'm running a 64 bit version of Java and even adjusted to account for that but I still got the same result for both .jar and .exe.
The game and the server are different.
Then move the "Server.bat" file into the same folder as the minecraft server
@echo off
SetLocal EnableDelayedExpansion
If exist "minecraft_server.jar" Set "Launcher=minecraft_server.jar"
If exist "Minecraft_Server.exe" Set "Launcher=Minecraft_Server.exe"
"%Programfiles(x86)%\Java\jre7\bin\java.exe" -Xms512M -jar "%~dp0\%Launcher%"
exit