cPanel & WHM Version 98 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Out of memory email should include process user information

Marc Warne shared this idea 5 years ago
Completed

A trivial request:

When cPanel emails the admin because an OOM condition occurred, it should also display the process owner in the email. For certain setups (e.g. mod_ruid2) this will enable the admin to determine which username caused the OOM issue assuming PHP was running.

In addition, when used with Cloud Linux, cgroups are in use. The email however states that "A process was terminated because the system is low on memory" but in reality it could have just reached its cgroup memory limit, so this is misleading.

Best Answer
photo

This is now in a public build of version 64, 64.0.1, which is in the CURRENT tier. Update to version 64 to take advantage of this change.


cPanel & WHM version 64 Release

Replies (4)

photo
2

Totally agree. And is there any way to contain those Out of Memory emails being sent out to the server admin to maybe 1 per minute, instead of 100 per second or whatever I usually end up getting once this happens, thus adding to the strain already happening on the server and clogging things up, pouring more gasoline on the fire?!

photo
1

A simple way to reduce email notifications would be to mute subsequent notifications for the same cgroup, rather than sending one notification for every process killed.

photo
1

I agree the 'system low on memory' message is misleading when it was indeed a cgroup memory limit, and likely leads to unnecessary support tickets.


Additionally, cgroup id numbers are used in the dmesg output but these are not useful; we need to see usernames. So if the process owner username could be added to the process ID row, that'd be perfect.


If that's too much to ask, even just a tip like this in the email notification would've helped me:

  1. If a task is killed as a result of limit of /<b>nnnn</b>, use <i># getent passwd <b>nnnn</b></i> to find the username.

photo
2

We will update the OOM parser in v64 to parse the process table included in the OOM output to get the user/uid of the process.


This has been assigned case CPANEL-11658

photo
1

Brilliant stuff - thank you for the update.

photo
1

This is now in a public build of version 64, 64.0.1, which is in the CURRENT tier. Update to version 64 to take advantage of this change.


cPanel & WHM version 64 Release

Replies have been locked on this page!