[Bug 876387] Re: fuser forking uncontrollably in cron job
Graham Poulter
876387 at bugs.launchpad.net
Fri Oct 21 08:20:39 UTC 2011
My workaround is to restore the php5 cron job from 11.04, which does not
call fuser:
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
We think fuser was added to cater for some edge case of process not
closing the session file, but was never tested with a large number of
sessions.
I posted this solution yesterday on the thread:
http://ubuntuforums.org/showthread.php?p=11355965
** Also affects: psmisc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/876387
Title:
fuser forking uncontrollably in cron job
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387/+subscriptions
More information about the Ubuntu-server-bugs
mailing list