Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

[HOTFIX] Greylisting handlers are causing system-wide memory allocation errors

Article ID: 6875 
Last Review: Nov,5 2009
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya 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 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.

Attachments:



Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products