Memory allocation error with getProcesses on Ubuntu 11.10

In the 1.11.3 version of the Linux agent, there is a bug which can be triggered by the temporary file cleanup process in PHP5 on Ubuntu 11.10 which runs every 30 min.

This article is for our v1 agent and will soon be deprecated.

This is caused by a bug in Ubuntu (#877894) where the PHP cleanup process never releases its processes until all available resources are used up. This will cause the agent to be unable to allocate memory and will crash.

A fix to handle out of memory conditions has been committed to the agent and is now available in the 1.11.4 release (25 June 2012).

You can either download the latest checks.py file and overwrite your existing /usr/bin/sd-agent/checks.py or edit /etc/cron.d/php5 on your system to replace: 

09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] 
&& find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin 
+$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete

with:

09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] 
&& find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin
+$(/usr/lib/php5/maxlifetime) -delete
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.