[Bug 1356113] Re: PHP5 session clean cron job causes OOM
Steve Kamerman
1356113 at bugs.launchpad.net
Sat Aug 16 01:04:05 UTC 2014
It just occurred to me that I was timing sudo in my last post, so here
are the sudo-less numbers:
root at steve-ubuntu:~# time for pid in $(pidof apache2); do find "/proc/$pid/fd" -lname "/var/lib/php5/*" -print -exec touch {} \; ; done
/proc/30005/fd/21
real 0m0.042s
user 0m0.016s
sys 0m0.026s
root at steve-ubuntu:~# time /usr/bin/lsof -w -l +d /var/lib/php5
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
apache2 30005 33 21uW REG 8,3 0 268283 /var/lib/php5/sess_r5mhepbrhgmgsdnvkj72ppoc37
real 0m1.076s
user 0m0.517s
sys 0m0.846s
root at steve-ubuntu:~# time /usr/bin/lsof -w -l -a +d /var/lib/php5 -c apache2
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
apache2 30005 33 21uW REG 8,3 0 268283 /var/lib/php5/sess_r5mhepbrhgmgsdnvkj72ppoc37
real 0m0.070s
user 0m0.032s
sys 0m0.052s
--
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/1356113
Title:
PHP5 session clean cron job causes OOM
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1356113/+subscriptions
More information about the Ubuntu-server-bugs
mailing list