Comment 5 for bug 877894

Revision history for this message
Graham Poulter (grahampo) wrote :

We also found this problem: the PHP cron launches one fuser for each PHP session file, and the process is never reaped (remains in <defunct> state)

Workaround for PHP is to remove the fuser check, which was only added 11.10 anyway.

This is the 11.10 cron job:

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

And this is the 11.04 cron job:

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