Apache stops for 10 mins every 4 hours

eabhi200k

Member
Nov 25, 2007
5
0
51
My current Apache Status:

Server Version: Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 PHP/5.4.22
Current Time: Monday, 07-Apr-2014 13:42:00 CEST
Restart Time: Sunday, 06-Apr-2014 17:22:41 CEST
Parent Server Generation: 18
Server uptime: 20 hours 19 minutes 19 seconds
Total accesses: 4236113 - Total Traffic: 11.9 GB
CPU Usage: u89.37 s10.13 cu0 cs0 - .136% CPU load
57.9 requests/sec - 171.1 kB/second - 3026 B/request
256 requests currently being processed, 0 idle workers
Running in DSO

Current Config:

Start Server: 40
Minimum Spare Servers: 20
Maximum Spare Servers: 60
Server Limit: 512
Max Clients: 256
Max Requests Per Child: 10000
Keep-Alive: On
Keep-Alive Time Out: 5
Max Keep-Alive Requests: 100
Timeout: 150
Please suggest a config for httpd.conf for handeling the traffic which you can see above in Apache Status

My Server Config is:

8 x (Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz)
48 GB RAM
2TB HDD
Running Apache
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

The thread title suggests that Apache stops every four hours. Could you post the output from the Apache error log when Apache is stopped? Are you having to manually start it back up?

Thank you.
 

MilesWeb

Well-Known Member
PartnerNOC
May 23, 2012
173
2
68
India
cPanel Access Level
Root Administrator
Twitter
Could you please check the number of connections using the command below when apache stops ? It will help to investigate further.

netstat -nap | grep :80 | wc -l
If the number of connections are high, I will recommend you to use prefork & increase Max Clients and Server Limits.
 

eabhi200k

Member
Nov 25, 2007
5
0
51
Hello,

The number of connections are: 7645

Please recommend exact setting, I have already mentioned the settings currently being used.

Could you please check the number of connections using the command below when apache stops ? It will help to investigate further.

If the number of connections are high, I will recommend you to use prefork & increase Max Clients and Server Limits.
- - - Updated - - -

how to check error log ? And also it starts automatically after 2 to 4 minutes
Hello :)

The thread title suggests that Apache stops every four hours. Could you post the output from the Apache error log when Apache is stopped? Are you having to manually start it back up?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
The Apache error log is located at:

/usr/local/apache/logs/error_log

Thank you.