Setting up a small vanilla server. Can't get ram above the default 100 mb ram

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here

DREVL

Well-Known Member
Jul 10, 2013
1,251
380
99
I have used the command "java -Xms1G -Xmx2G -jar minecraft_server.1.10.2.jar"


server starts, the java consol never shows anything above less than 100mb ram used. what am I doing wrong?
 
T

Techly88

Guest
I have used the command "java -Xms1G -Xmx2G -jar minecraft_server.1.10.2.jar"


server starts, the java consol never shows anything above less than 100mb ram used. what am I doing wrong?

Java doesn't just "eat all the RAM that you gave it". It simply the allocation limitation that you dictate what you want Java to retain within. For instance that line means..

"start ups at 1GB allocation then allocates as needed up to 2GB".

This means Java has access to 1GB then increase its access amount until it hits 2GB.

About the console, so you run the .bat and NOTHING even happens?
 
X

xbmrtn

Guest
Some windows 32 bit versions cannot allocate more than a gigabyte to your server, quite common. You could try 1024 mb and 2048 mb digits instead of 1-2 gigas.

I hope it helpd
 

Hambeau

Over-Achiever
Jul 24, 2013
2,598
1,531
213
Some windows 32 bit versions cannot allocate more than a gigabyte to your server, quite common. You could try 1024 mb and 2048 mb digits instead of 1-2 gigas.

I hope it helpd

Due to the limited space available with a 32-bit address bus all 32-bit windows only allow a total of 3GB ram total, and most older versions required 1-1.5 GB restricted for exclusive Windows use. If you have "Integrated" graphics (no video card) then another 256-512 ram is taken from the total, leaving around 1GB for Java/Minecraft.

You can technically tweak the Windows config for a total of 4GB but you really have to know what you're doing and hope your hardware allows the extra ram to be installed.

64-bit Windows does not have this small limitation because of the 64-bit address bus. Here are the comparative ranges:

Size: Locations:
32-bit: 4,294,967,296
64-bit: 18,446,744,073,709,551,616
 

DREVL

Well-Known Member
Jul 10, 2013
1,251
380
99
upon further review... I am using a 64 bit computer with the latest 64 bit java. The ticker was averaging around 60 mb ram while running the vanilla 11.10.2 between 1- 2 players. that being said, it did say that 5 percent of it was being used. 60*20 is ~1 gb, so it might be doing exactly what I told it to. Not sure yet.
 

Hambeau

Over-Achiever
Jul 24, 2013
2,598
1,531
213
Running Vanilla 1.10 on my 64-bit system shows just under 1GB ram usage as well... I just haven't run vanilla since "Unstable" came out :D