Opened 4 years ago

Last modified 4 years ago

#363 new defect

xcache 3.2.0 leaks fd's

Reported by: glen Owned by: moo
Priority: major Milestone: undecided
Component: cacher Version: 3.2.0
Keywords: Cc:
Application: PHP Version: 5.3.29
Other Exts: SAPI: FastCGI
Probability: Sometimes Blocked By:


after i updated from 3.2.1 to 3.2.0 i had several times php53-fpm resulting site downtime because xcache has leaked fds's and fpm was not able to open any more files

i have not able to reproduce it, because don't know how it happens, but at some point there are like 5000 open php files by php process:

$ lsof -nP -c php53-fpm|grep -F .php | wc -l

the files being left open are .php files, like:

php53-fpm 25948 http 17r REG 253,10 3123 12591400 /usr/share/webapp/htdocs/index.php
php53-fpm 25948 http 18r REG 253,10 7881 13334101 /usr/share/webapp/htdocs/list.php
php53-fpm 25948 http 19r REG 253,10 9117 8432245 /home/glen/webapp/htdocs/send.php
php53-fpm 25948 http 20r REG 253,10 15429 8432251 /home/glen/webapp/htdocs/view.php
php53-fpm 25948 http 21r REG 253,10 15429 13334119 /usr/share/webapp/htdocs/view.php
php53-fpm 25948 http 22r REG 253,10 7881 13334101 /usr/share/webapp/htdocs/list.php
php53-fpm 25948 http 23r REG 253,10 15429 8432251 /home/glen/webapp/htdocs/view.php

ps my SAPI is FPM, but FPM is not in choice in this trac, so i filled just FastCGI

ps2: i have downgraded now back to 3.1.0 and the fd leaks are gone.

Change History (2)

comment:1 Changed 4 years ago by glen

sorry, my old working version is "3.1.0", i'm unable to correct original bugreport.

comment:2 Changed 4 years ago by glen

the error from fpm to lighttpd is typically such:

2015-07-17 11:36:42: (mod_fastcgi.c.2695) FastCGI-stderr: PHP message: PHP Warning: require_once(/usr/share/webapp/lib/webapp/class.search_profile.php): failed to open stream: Too many open files in /usr/share/webapp/lib/webapp/autoload.php on line 106
Note: See TracTickets for help on using tickets.