Direct answer
Linux uses spare RAM for page cache. The useful host indicator is typically MemAvailable rather than just MemFree; cached memory can improve repeated region-file reads.
How to check it
- Run
free -handgrep -E "MemAvailable|MemFree|Cached|Buffers" /proc/meminfoon the real host where accessible. - Compare filesystem cache with process RSS, JVM heap allocation and the container memory limit.
- Check swap activity and OOM events before concluding the operating system lacks memory.
What to change
free -h
grep -E "MemAvailable|MemFree|Cached|Buffers" /proc/meminfo- Do not clear Linux page cache as a routine Minecraft optimization; it may cause slower subsequent disk reads.
- Focus on demonstrated memory pressure, OOM kills or swap activity rather than high used-memory numbers alone.
- If a container is limited, examine cgroup statistics because host-wide
freemay not represent its memory budget.
Software and version notes
Compatibility and safety
Cached includes some tmpfs/shmem accounting, and MemAvailable is an estimate rather than a promise. File cache is different from the Java heap and the Minecraft chunk cache.
Verify the result
Confirm stable available memory, low swap activity and no new OOM kills under comparable player load.