Description: The server load is very high, top of the first few fuser process.
Search the Internet for a https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387.
The suggestion is to put this
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
Change to:
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 are two questions:
1. This seems to be a 11.10 bug, my server is 12.04, and another 12.04 has not had this problem.
2. Compare the recommended changes above! -execdir fuser-s {} 2>/dev/null \; What does this sentence do?
Reply content:
Description: The server load is very high, top of the first few fuser process.
Search the Internet for a https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387.
The suggestion is to put this
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
Change to:
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 are two questions:
1. This seems to be a 11.10 bug, my server is 12.04, and another 12.04 has not had this problem.
2. Compare the recommended changes above! -execdir fuser-s {} 2>/dev/null \; What does this sentence do?