php5 cronjob fuser designed to clean out php sessions is eating the cpu on ubuntu boxes.
This is the content of /etc/cron.d/php5 on 11.10:
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 content on 11.04 where it worked fine:
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
There’s no fuser in the old 11.04 cron. replace your 11.10 with the old 11.04 cron.
solution from here:
http://www.flynsarmy.com/2011/11/fuser-using-100-cpu-in-ubuntu-11-10/
also noted on ubuntu’s bug page
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387