Recently I added a memory usage warning panel to Zotonic. It shows an alert when the system_memory_high_watermark
alarm is set.
Oddly enough this alert is set when the system has 60 gigs of its 64 gig ram available. Because it looks like Erlang, instead of looking at the available ram, it looks at used ram.
Is there a way to change this behavior? Currently Erlang will set the memory alarm way too early, mainly because the OS chooses to use the available ram for buffering and caching files. When programs need this memory it will be made available.