Dynamically set RAM Percentage
By default, 87% of the default RAM allocation for the actual Minecraft server. This leaves the Linux operating system behind the server to have roughly 0.52GB of memory to work with on the lowest resource plan of 4GB.
The problem stems from having that percentage remain the same on larger plans such as the 24GB plan where 87% would leave the operating system with 3.12GB, way more than it actually needs.
The proposed solution is to dynamically set the RAM percentage to be set in a way that leaves between 0.5-1GB of memory for the operating system by default so there's no "wasted" ram for game servers running large amounts of ram.
Comments2
smashyalts
Feb 2, 2024
you dont want to run larges amount of ram, as it actually hurts performance when using the default Garbage collector (G1GC) as it can lead to worse performance and more lag spikes.
Anonymous User
Nov 20, 2023
The JVM has overhead itself which can be 1-2 gb above the xmx alone