Apache hangs without traffic
Hi, some months ago i installed my server following the great tutorial The Perfect Server - CentOS IspConfig 3.
Randomly apache hangs without reason, without traffic. The first few months I have not given importance to this issue, due the fact I was using the server mainly for develop and test some open source project.
Now the server has some site on production, a very very low traffic, and apache hangs without reason, random.
Before installing ispconfig 3 this rack was serving sites for about 15k unique visitor/day without problem. After setup with ispconfig i notice this strange behavior.
When apache hangs the load grow up very fast, the error log write
I registered about 150 vhosts, but only 10 are in production, the other are not used.
I'm running a sh script that check the load and then restart apache, before reload i save the server-status but nothing strange here, many times there are only 5 / 6 requests ...and some OPTIONS * request.
It's possible it's related to some check that ispconfig do with cron job or similar?
Have you some ideas about it?
Yesterday i upgraded to the last version of ispconfig, (the old was 3.0.2) but i have same problems.
Please post the output of the command:
when the load is high on your server.
i have a top screen of some day ago (i have a shell script that print the top when the load is too high)
Yesterday i updated all package of the system. I'll print the top if the load will grow again.
I recommend that you install the software packages munin and monit on your system to monitor the server parameters. You can find tutorials for that here on howtoforge.
Additionally you should check your apache access log if there are any unusual requests. Such a high load can e.g. be caused by a DOS. Then enable also the slow query log in mysql as slow mysql queries can bring down apache as well.
It is unlikely that the problem is directly related to ispcnfig.
Hi till thank you for fast answer.
Unfortunately I already checked all.
Munin is installed, but when apache hangs the log told me nothing. All request are standard and (very strange thing) the traffic is very low (pratically null)!
...i'll take a look to mod_evasive to be 100 sure it cannot be a DOS attack
Mysql is optmized and it does not load too much the system.
just calculated, i have 3 slow query on 9241827 requests (mainly during the night backup)
I supposed the problem could be connected to ispconfig because i checked all before without any clue!
Thank you again for you support. i'll continue to investigate
is possible to disable (maybe uninstall ) ispconfig to make some test and then re-enable (maybe reinstall ) it?
There will be problems ? I'll mess up the server?
You can uninstall ispconfig with the uninstall.php script which is in the install folder of the ispconfig tar.gz. But you will have to reinstall the whole Linux system when you want to install ispconfig again afterwards.
Please check the apache log files again, the global apache error.log and the error.log files in the log folders of the websites. Also check the access log files if there are any unusual requests when the problems occur. Are there any peaks in the munin graphs?
Ok Till, i'm not going to uninstall ispconfig !
Last night a new load with apache down about at 23.25
as you can see on the munin graph i cant see anything unusual (but maybe you can see something that i cannot see :) )
Is this a virtual server? If yes, which virtualisation software is used?
No, it's a dedicated server
IntelŪ PentiumŪ D 3800 MHz
CentOS release 5.6 (Final)
|All times are GMT +2. The time now is 18:05.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.