Article ID: 6875, created on Nov 5, 2009, last review on Aug 12, 2014

  • Applies to:
  • Plesk 9.2 for Linux/Unix

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 the 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<---


Parallels Plesk Panel, sw-cp-server, and Apache also fail with the 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

The hotfix for Parallels Plesk Panel 9.2 is attached. The hotfix will solve problems with high CPU loading and many executable running processes.

To install the hotfix, download gl.tar.bz2 to your Parallels Plesk Panel server and extract the archive:

~# wget http://kb.sp.parallels.com/Attachments/11299/Attachments/gl.tar.bz2
~# bunzip2 gl.tar.bz2
~# tar -xf gl.tar
~# ls
GL  gl.tar
~#


In the resulted directory, GL, find the fixed grey file for your operating system and architecture. Replace the existing /usr/local/psa/handlers/hooks/grey file with the fixed file. Then correct the permissions.

For example, for operating system Centos 5, 32 bit:

~# 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 the directory that is 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 will work in Parallels Plesk Panel version 9.0 as well; however, extra warnings will appear in the maillog.

Attachments

11a46d8a188d618564f4f0cead9a50f3 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF