现在的位置: 首页 > 综合 > 正文

linode Ubuntu 11.10 fuser 进程占cpu高bug 解决方法

2018年05月06日 ⁄ 综合 ⁄ 共 625字 ⁄ 字号 评论关闭

linode Ubuntu 11.10  fuser 进程占cpu高bug 解决方法
    vim /etc/cron.d/php5

    修改为
    # Look for and purge old sessions every 30 minutes Ubuntu 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

    #for 11.04
    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

相关文章
    https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387
    http://www.flynsarmy.com/2011/11/fuser-using-100-cpu-in-ubuntu-11-10/

抱歉!评论已关闭.