[Bug 1023591] Re: php5 opens /proc/XXX/auxv thousands of times until Apache crashes with "too many open files"
Jens
jens-launchpad.net at spamfreemail.de
Sun Jul 15 08:06:54 UTC 2012
I'm running PHP as a FCGI (FastCGI) module to isolate my user
environments from each other properly.
No specific script causes this behaviour, I have multiple "handwritten"
PHP scripts as well as Typo3 and Mambo / Joomla / whatever processes
running and they all collect open file descriptors roughly at the same
speed.
Here is an example virtualhost configuration:
<VirtualHost xx.xxx.xxx.xx:80>
ServerName foobar.name
ServerAlias *.foobar.name
ServerAdmin jens at xxxxxxxx.de
DocumentRoot "/xxxxx/webs/jens/name.foobar/"
FcgidIdleTimeout 30
SuexecUserGroup "jens" "jens"
<Directory "/xxxxx/webs/jens/name.foobar/">
<FilesMatch "\.(php)$">
SetHandler fcgid-script
FCGIWrapper /xxxxx/jens/foobar.name/php-fcgi-starter .php
Options +ExecCGI
</FilesMatch>
Order allow,deny
allow from all
</Directory>
Alias /awstats "/xxxxx/webs/jens/awstats/foobar.name"
Alias /awstats-icon "/usr/share/awstats/icon/"
ErrorLog "/xxxxx/logs/jens-foobar.name-error.log"
CustomLog "/xxxxx/logs/jens-foobar.name-access.log" combined
</VirtualHost>
Here is the referenced (autogenerated) "php-fcgi-starter" script:
umask 022
PHPRC='/xxxxx/jens/foobar.name/'
export PHPRC
PHP_FCGI_CHILDREN=0
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=250
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi -c '/xxxxx/jens/foobar.name/'
I will read up on FPM, thank you for the info. But I still regard this
as a bug ;)
Cheers
Jens
--
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/1023591
Title:
php5 opens /proc/XXX/auxv thousands of times until Apache crashes with
"too many open files"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1023591/+subscriptions
More information about the Ubuntu-server-bugs
mailing list