Low Memory Conditions on SUSE
This document (7000120) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
Situation
Application memory leak
Slow server or application performance
As of SLES 15 the output of the free command is:
#==[ Command ]======================================#
# /usr/bin/free -k vvvvvvvvv
total used free shared buff/cache available
Mem: 1817364 96144 1360352 5544 360868 1564216
Swap: 1715176 0 1715176 ^^^^^^^^^
Prior to SLES 15 the output is:
#==[ Command ]======================================#
# /usr/bin/free -k vvvvv
total used free shared buffers cached
Mem: 776380 769628 6752 0 1268 4228
-/+ buffers/cache: 764132 12248
Swap: 1164672 396088 768584
^^^^^
Resolution
2. If you suspect a memory leak, you may need to report a bug to the application vendor. One method to narrow down an application memory leak is to reboot the server. Make sure all applications are running as expected. Finally run a supportconfig for a baseline server configuration. Wait for the server to show out of memory symptoms. Run another supportconfig to compare against the baseline. Compare the basic-health-check.txt and memory.txt files. Detailed memory troubleshooting is outside the scope of this document.
Additional Information
Prior to SLES 15, the free command has a free memory available on the "Mem:" line, but it is not an accurate estimation of memory available for starting applications. You also have to include cached items that could be freed up if needed. This free memory plus cache that could be freed is on the "buffers/cache" line under the "free" column.
As you run out of memory, the server begins swapping to disk. A good rule of thumb is, used memory should be less than 90% of the total memory.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7000120
- Creation Date: 23-Feb-2009
- Modified Date:26-Aug-2021
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com