2012年3月30日 星期五

fuser defunct 為PHP5 BUG 耗損CPU 而產生殭屍程序的解決方式

這問題產生在 Ubuntu server 11.10 請修正編輯 /etc/cron.d/php5 更換程式碼如下:

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) -deleteNow everything works fine! :)