This article describes a memory information collection script (cbs_meminfo.pl) that can be used to investigate out of memory (OOM) conditions.If an out of memory condition occurs, the oom-killer will begin to terminate or kill processes and daemons, and eventually the system will reboot due to the out of memory condition.
Goal: To provide a tool to use in investigating the contributing factors to an out of memory condition.
Using cbs_meminfo.pl to diagnose OOM Conditions on APM
If a system experiences repeated out of memory conditions, you can use the script attached to this article to help investigate the factors that may contribute to the memory leak. The script will collect memory information from
/proc/slabinfo on a continuous 5-minute interval.
If you have experienced an out of memory (OOM) condition on the APM, use the attached
.tar file and follow the instructions below to collect APM memory utilization information. You can then use the information to help identify memory slab allocations that are used consistently and are possibly "leaking", potentially causing the OOM condition.
Note: For an educational summary on Linux memory in general, see KB Article #