[php-maint] Bug#711291: php5 cron file can run multiple times in parallel

Alexander E. Patrakov patrakov at gmail.com
Thu Jun 6 06:36:18 UTC 2013


Package: php5
Version: 5.4.4-14
Severity: normal

Dear Maintainer,

Some bad guys have created a lot of PHP sessions on my server. So many
that it takes more than 30 minutes to remove them for the default PHP5
cron script that runs a fuser process for each session file to be
removed.

While the old instance of the cron job was still running, cron decoded
to spawn another one, further increasing the load average. You could
avoid that by using a lock file and mailing the admin if the script
runs over its own tail.

Of course, it would also be nice to avoid running an expensive fuser
process for each to-be-removed file.

-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5 depends on:
ii  libapache2-mod-php5  5.4.4-14
ii  php5-common          5.4.4-14

php5 recommends no packages.

php5 suggests no packages.

-- no debconf information

-- 
Alexander E. Patrakov



More information about the pkg-php-maint mailing list