WHM can send Out of Memory (OOM) warnings to notify the server administrator when a process is killed due to insufficient memory. Enabling this setting helps you identify memory-hungry processes and address resource issues before they cause recurring service outages.
Step 1: Log in to WHM
Open your browser and navigate to https://your-server:2087. Enter your root credentials to log in.
Step 2: Navigate to Tweak Settings
In the left-hand menu, go to Home » Server Configuration » Tweak Settings.
Step 3: Find the OOM Warning Setting
Use the search bar at the top of the Tweak Settings page and type memory. Look for the option labelled Out of memory warnings under the Notifications or Stats and Logs section.
Step 4: Enable the Setting
Toggle the switch to On.
Step 5: Save Changes
Scroll to the bottom of the page and click Save.
Important Notes
- When enabled, WHM sends an email notification to the server contact address each time the Linux kernel terminates a process due to an out-of-memory condition.
- Notifications are sent to the email address configured in Home » Server Configuration » Basic WebHost Manager® Setup under Server Contact Email Address.
- This is a server-wide setting that applies to all accounts on the server.
- Enabling OOM warnings is strongly recommended for monitoring server health and preventing unexpected downtime.
- This setting is stored in
/var/cpanel/cpanel.configasoomwarnings.
Troubleshooting
- Not receiving OOM emails: Verify the server contact email address is correct. Check that your server can send emails by reviewing Home » Service Configuration » Exim Mail Server. Also check the server mail queue and spam folders.
- Frequent OOM warnings: This indicates your server does not have enough RAM for its workload. Consider upgrading your server RAM, optimizing applications, or adding swap space. You can also investigate memory-intensive processes by running
ps aux --sort=-%mem | headvia SSH. - Cannot find the option: Use the search/filter bar at the top of Tweak Settings to locate it. Some server profiles may hide certain settings.