Linux Server Admin with Fexingo: Sysadmin, Bash, and Server Engineering

How to Diagnose Linux Server Memory Leaks


Listen Later

Memory leaks on Linux servers can silently degrade performance until a process is killed or the system crashes. In this episode, Lucas and Luna walk through a real-world scenario: a Node.js web server that slowly consumes memory over days. They explain how to use tools like 'top', 'ps', '/proc/meminfo', 'smem', and 'valgrind' to identify the offending process, measure memory growth, and trace the leak to its source. They also cover practical prevention strategies, including memory limits with systemd and cgroups, and monitoring with a simple cron script. No theory without practice — listeners get a concrete shell one-liner to log resident set size over time and a checklist for integrating leak detection into CI. Perfect for sysadmins who manage production servers and want to catch leaks before users notice.

#Linux #ServerMemoryLeak #Sysadmin #MemoryDiagnosis #NodeJsMemoryLeak #TopCommand #Valgrind #SystemdMemoryLimit #Cgroups #ResidentSetSize #Smem #ProductionDebugging #PerformanceMonitoring #BashScripting #Fexingo #FexingoTech #TechnologyPodcast #LinuxServerAdmin

Keep every episode free: buymeacoffee.com/fexingo

...more
View all episodesView all episodes
Download on the App Store

Linux Server Admin with Fexingo: Sysadmin, Bash, and Server EngineeringBy Fexingo