So I have been trying to allocate more ram to my server because it takes forever to load chunks when flying around in creative.. but it will not load when changing the amount of ram in the batch file. I have tried just about every amount.
My batch file reads:
"java -Xmx1024M -Xms1024M -jar server.jar
pause"
This works and it will load the server but, when i try to run it like this:
I have 16Gb of ram in my pc. I have tried 2gb 3gb 4gb but i want to do 12 so i started there then worked back to see if any smaller ones would work. I can't even get 2gb to work
Chunk loading is a CPU dependent process, only partially RAM dependent.
Also disk dependent. In certain operating systems, adding ram to java means reducing ram for the OS to use as disk caching, thus slowing the chunk generation as the game tries to write the chunks to disk without having them corrupted. This is a generalization, but write behind caching is implemented differently in Windows than in linux/osx and allocating more ram to a process can have more or less impact on the performance of the writing of the chunks to disk.
Also chunk generation (not saving them to disk) is CPU bound.
So I have been trying to allocate more ram to my server because it takes forever to load chunks when flying around in creative.. but it will not load when changing the amount of ram in the batch file. I have tried just about every amount.
My batch file reads:
"java -Xmx1024M -Xms1024M -jar server.jar
pause"
This works and it will load the server but, when i try to run it like this:
"java -Xmx12288M -Xms12288M -jar server.jar
pause"
I get the error: invalid maximum size: -Xmx12288M the specified size exceeds the maximum representable size.
Any suggestions on what the issue is?
I have 16Gb of ram in my pc. I have tried 2gb 3gb 4gb but i want to do 12 so i started there then worked back to see if any smaller ones would work. I can't even get 2gb to work
Had 32bit java.. fixed it with 64bit. Also this pc is only running the server so im running 14/16Gb cus it still takes too ling to load chunks
Chunk loading is a CPU dependent process, only partially RAM dependent.
Also disk dependent. In certain operating systems, adding ram to java means reducing ram for the OS to use as disk caching, thus slowing the chunk generation as the game tries to write the chunks to disk without having them corrupted. This is a generalization, but write behind caching is implemented differently in Windows than in linux/osx and allocating more ram to a process can have more or less impact on the performance of the writing of the chunks to disk.
Also chunk generation (not saving them to disk) is CPU bound.