View Single Post
Old 4th October 2009, 00:34
gkovacs gkovacs is offline
Join Date: Jan 2009
Location: Budapest, Hungary
Posts: 47
Thanks: 5
Thanked 0 Times in 0 Posts
Default ISPConfig causes Apache to have too many open files

We have encountered a very weird error after installing ISPConfig
Basically it causes Apache/mod_php to create thousands of open files (actually FIFO pipes), and they are staying open until the system runs out.

On our production servers running ISPConfig, lsof |wc-l shows 2-5000 open files, and if traffic is declining this number decreases fast, no problem there.
On newly installed servers with, there is no problem.

Ou our newly installed server with, after clicking through the web interface a couple of times (and maybe some PHPMyAdmin pages as well, to increase load a bit), lsof shows a growth to 10-20000 open files in a minute, and they never close.
After a couple of minutes, the web server slows to a halt and PHP pages do not load anymore.

We have tested this on several different (freshly installed) servers:

- Ubuntu 8.04 with perfect server setup (OpenVZ)
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.7

- Debian 5 with perfect server setup (OpenVZ)
Apache/2.2.9 (Debian) PHP/5.2.6-1

The only difference is that on Debian, restarting apache actually closes the open files, while on Ubuntu they are kept open even then.
Reply With Quote
Sponsored Links