![]() |
ISPConfig 3.0.1.4 causes Apache to have too many open files
We have encountered a very weird error after installing ISPConfig 3.0.1.4.
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. REFERENCE On our production servers running ISPConfig 3.0.1.3, 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 3.0.1.3, there is no problem. ERROR Ou our newly installed server with 3.0.1.4, 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. ENVIRONMENT 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. |
This could be related to OpenVZ, beacuse i can't reproduce it on non vps server and on esxi vps. I'm running multi server setup (ispconfig 3.0.1.4) on debian 5.0.3.
|
I'am also not able to reproduce this on my servers. Also the ispconfig interface is basically a normal php script, it is not able to keep files open.
Maybe you use fcgi and have a high number of fcgi children configured. Check the server settings and set fcgi children to 1. You will have to open the settings of your website(s), cahnge a value and and save it to update this setting for a site. |
First of all, I'm not using FCGI (it's not even installed).
Second, there are no sites, only one that has PHPMyAdmin installed under it for the testing. Third, the problem does not manifest itself until ISPConfig 3.0.1.4 has been installed. Basically, the ONLY DIFFERENCE between the working and the problematic server is the version of ISPConfig installed. This is what I do for every VPS on the host (needed for Pure-FTPD): Code:
cat >vpscap.shCode:
apt-get update |
Quote:
Please run: ps aux and check if you have a high number of php processes. |
Quote:
Problem occurs after some time of working in control panel (if i don't use it everything works fine). Problem is php get error "Failed to open stream. Too many open files..." while file-nr is about 1000 times smaller than file-max. |
Are you both running single server or multi server setups?
I'm running multi server setup, with the interface on a signle server and lsof | wc -l stays between 2100 - 2500. I will keep my eye on it during the day to see if it grows. |
Quote:
P.S. sorry for my english |
Please post the output of:
ps aux | grep php |
Quote:
|
| All times are GMT +2. The time now is 12:14. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.