I recently started a vanilla Linux Minecraft server (v1.7.2) and have been having trouble with high RAM usage causing the server to disconnect. I have allocated a maximum of 3.5 GB.
I restarted the server an hour ago and have been monitoring it. I noticed that when players disconnect, the memory usage doesn't reduce and as more players join, the memory usage just increases.
- With 5 players logged in, the RAM usage is at 63% (2.1 GB).
- With just 3 players on the server, memory usage is 58.9%.
I am also getting this error when starting the server:
Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
The command I am using to start the server is:
java -Xms512M -X3584M -jar minecraft_server.jar
What could be causing the high memory usage and why doesn't it reduce when the player count reduces?