Okay, for everyone that is trying to run the minecraft_server.jar file with more RAM and is having the error that
''java' is not recognized as an internal or external command operable program or batch file"
On a Windows machine you have to set your Environment Variables.
This was happening and i thought nothing of it seeing as how its just a private server for a few friends of mine...last night when it crashed after creating a giant ball of TNT (voxelSniper is so nice :tongue.gif:)...i thought i'd look into this.
i just opened up my RUN.bat (or w/e the launcher's name is) and changed the "512" to "1024" in lines 2 and 3. no more issues. thanks a bunch guys :biggrin.gif:
I got the Jar and CMD windows working but how to you expand the CMD window so you can see the whole sentences of txt, atm I cant drag the window bigger and clicking maximise only makes the window longer and not wider nor does it let me see all the text.
Hey guys, I purchased the game a couple of days ago and have been hosting my own server(survival) with a few friends. When im staring the server it get that "NOT ENOUGH RAM!" message, the server starts up anyway and it runs fine, eventually(about 4 hours+) it starts to lag a bit forcing me to restart the server. I have 8 gigs of ram so i dont think its because my current ram is too low(lol). I see it says to launch the game with a specefic command but I am unaware of how to do that, If I could receive ANY help I would GREATLY appreciate it!
[INFO] Starting minecraft server version 0.1.4
[WARNING] **** NOT ENOUGH RAM!
[WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
[INFO] Loading properties
[INFO] Starting Minecraft server on *:25565
[INFO] Preparing level "world"
[INFO] Preparing start region
Create a file called RUN.bat and copy and paste this into it:
CD /D "%BINDIR%"
java -Xmx1024M -Xms1024M -jar minecraft_server.jar
Then put it into the same directory as your minecraft_server.jar and double click it to start the server every time!!!! And voila! You are done.
Now give me a diamond so i can make a pick! only got two =(
Oh ya and here's the post I made about it! Hope it helps!
Why you cant run more than 1 GB of RAM on a windows machine...
1. Windows limits the amount of RAM a process can have to 1024mb (unless you have a 64-bit machine), which is why multi-threaded applications have been so popular (EX google chrome)
Learn CMD Commands & their relation to core windows components
2. Java limits the amount of RAM it can use by default to 1.5 GB or 1536mb, which can be edited to a higher setting by doing these steps:
Type "java" in the search bar
Click on the first link
Under Runtime Parameters type in "-Xmx[how many megabytes here]M -Xms[how many megabytes here]M"
3. Windows organizes processes by how much RAM they take and splits them up evenly to each RAM module you have in your system, making the maximum amount of RAM the capacity of the module with the most RAM, thus if you have 2 X 1 GB sticks of RAM in your system, the most 1 application can have at a time is 1 GB or 1024 mb.
Workaround: Linux, preferably Ubuntu
Windows is not an optimal OS for a minecraft server.
Depends on what you mean optimal. I agree that Linux is better server OS than Windows, but for Minecraft I doubt it makes a noticeable difference since both platforms use JVM which works the same on all platforms (that's the meaning of Java).
Show me a video of a minecraft server running with 9gb or ram on windows.
That registry information is for information purposes only, like displaying available RAM and hardware infromation in tools like Device Manager. It does not "control" the amount of RAM being available to a single process like you stated in your previous post.
Explorer uses the information in the registry in order to be able to sort the different processes into their RAM module(s). Anything over the limit, and windows becomes unresponsive, since it cannot split 1 process into 2 ram modules.
Copy-pasted from Answers.com (wall of text warning):
Processes access virtual memory space, not physical memory. Applications never access RAM directly but only through the memory management interface of the processor.
All 32bit processes on 64bit Windows, each process has 2GB private address space, unless compiled large address aware in which case it has 4GB private adress space.
This is completely independent of the size of RAM or the pagefile. The system maps physical memory into this virtual address space according to both need and availability.
At any given time the data in virtual memory space might be stored in RAM, on disk, or both. All of this is totally transparent to all applications. Frequently accessed data will be kept in RAM with the remainder left on disk.