#[42.15.2] [Linux] Project Zomboid Using More Ram than It's allowed

1 messages · Page 1 of 1 (latest)

neon ridge
#

When loading into a multiplayer server the game rapidly consumes more and more ram, going from the 3 gb It's allowed to over 10 gb, causing every other application on my computer to run worse overall, I have 32 gb of ram and my computer isn't running out

#

This never happened on windows, so It's quite confusing to me

neon ridge
long sigil
#

3gb is the heap, the game uses RAM for other assets above the heap

#

More mods means more assets means more RAM

neon ridge
night lintel
# neon ridge Why would it be any different between Windows and Linux?

linux hands out RAM to processes differently, especially in regards to caching, which would be the "above the heap" case that Beard mentioned. more notably it tends to not reclaim memory for caches until it actually needs to, preferring to keep them around to avoid the (typically CPU) overhead of spinning them back up again.

if you were truly utilizing all 32GB of your RAM and experiencing slowdowns then you might have a valid basis here, but I imagine (from what you described, with 10GB usage) i imagine that wasn't the case

neon ridge
long sigil
#

Task Manager shows lower RAM for Java apps because it reports mainly the memory unique to the process. Linux tools like top, htop, btop show higher usage because it includes shared libraries, like glibc, counted fully per process plus JVM overhead