High Memory Usage
Cheat sheet · https://pcornel.dk/topic.php?topic=2914
Answer
High memory usage means available memory is low, the system swaps, or the OOM killer stops processes.
Remember
Ignore cache — look at available. Identify the largest RSS processes and whether they grow. Limit services with MemoryMax=. Add swap only as a buffer, not a fix.
First checks
journalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -T | tail— recent kernel messages
Commands
df -h -t tmpfssystemctl show app -p MemoryMax
Verify in this order
processes allocate → available memory falls → swap → OOM kill
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2914