Symptoms
When '/opt/psa/handlers/info/05-grey-KIMklQ/executable -> /opt/psa/handlers/hooks/grey' periodically starts, CPU usage skyrockets.The following error is shown in maillog:
/usr/local/psa/var/log/maillog
--->8---
Oct 31 17:34:31 plesk qmail-queue-handlers[6091]: call_handlers: call executable = '/opt/psa/handlers/info/05-grey-KIMklQ/executable'
Oct 31 17:34:31 plesk qmail-queue-handlers[6091]: fork_execv_fd: Error occured during fork(): Cannot allocate memory
Oct 31 17:34:31 plesk qmail-queue-handlers[6091]: call_handlers: Error during call '/opt/psa/handlers/info/05-grey-KIMklQ/executable' handler
Oct 31 17:34:31 plesk qmail-queue-handlers[6091]: LOG Internal error in handler '05-grey-KIMklQ'. Skip handler.
---8<---
Also Parallels Plesk Panel, sw-cp-server and Apache also fail with error "Cannot allocate memory".
/var/log/sw-cp-server/error_log
--->8---
2009-11-01 07:54:13: (log.c.135) server stopped
2009-11-01 07:56:45: (log.c.75) server started
2009-11-01 07:56:45: (mod_fastcgi.c.1337) Dynamic spawning with max_procs > 1 is not supported; setting min_procs = max_procs
2009-11-01 07:56:45: (mod_fastcgi.c.1337) Dynamic spawning with max_procs > 1 is not supported; setting min_procs = max_procs
php (pre-forking): Cannot allocate memory
--->8---
/var/log/apache2/error.log (or /var/log/httpd/error_log)
--->8---
[Sun Nov 01 07:57:47 2009] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Sun Nov 01 07:58:23 2009] [error] (12)Cannot allocate memory: fork: Unable to fork new process
--->8---
Resolution
Hotfix for Parallels Plesk Panel 9.2 is in the attachment. The hotfix will solve problems with high CPU loading and many running processes executable.To install the hotfix download file gl.tar.bz2 to your Parallels Plesk Panel server and extract the archive:
~# wget http://kb.parallels.com/Attachments/11299/Attachments/gl.tar.bz2
~# bunzip2 gl.tar.bz2
~# tar -xf gl.tar
~# ls
GL gl.tar
~#
In resulted directory "GL" find fixed file "grey" for your operating system and architecture. Replace existent file /usr/local/psa/handlers/hooks/grey with one you have found. And then correct permissions.
For example for operating system Centos 5, 32bit:
~# cp GL/dist-rpm-CentOS-5-i386/grey /usr/local/psa/handlers/hooks/grey
~# chown root:popuser /usr/local/psa/handlers/hooks/grey
~# chmod 4550 /usr/local/psa/handlers/hooks/grey
Instead of dist-rpm-CentOS-5-i386 select directory appropriate to your operating system and architecture.
Additional information
The hotfix is valid for Parallels Plesk Panel versions 9.2.2 and 9.2.3.NOTE: The hotfix would work in Parallels Plesk Panel version 9.0 as well, however extra warnings will appear in the maillog.