Muchas gracias
MinusFour y a
el-brujo por sus comentarios:
Voy a definir desde el principio.
el-brujo
¿Apache o ngnix?
Es un servido que tiene instalado apache y usa ngninx como proxy de apache y es un Centos y usa el plesk para la administracion.
El servidor cuenta con 24 Cores y 24 GB en RAM
No he podido dar con el problema, pues de la nada deja de operar apache, y tengo que reinicar el servicio de apache.
Cuando se traba, solo aparece servicio no disponible
ya realize el cambio en el httpd.conf, de warn a info y me ha estado arrojando estos warning:
[Mon Jul 21 16:23:50 2014] [info] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(6007) exit(lifetime expired), terminated by calling exit(), return code: 0
[Mon Jul 21 16:23:50 2014] [info] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(6006) exit(lifetime expired), terminated by calling exit(), return code: 0
[Mon Jul 21 16:23:54 2014] [info] mod_fcgid: server xcaretexperiencias.com:/var/www/cgi-bin/cgi_wrapper/cgi_wrapper(6954) started
[Mon Jul 21 16:24:06 2014] [info] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(6340) exit(lifetime expired), terminated by calling exit(), return code: 0
[Mon Jul 21 16:24:06 2014] [info] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(6433) exit(lifetime expired), terminated by calling exit(), return code: 0
[Mon Jul 21 16:24:06 2014] [info] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(6330) exit(lifetime expired), terminated by calling exit(), return code: 0
[Mon Jul 21 16:24:10 2014] [info] mod_fcgid: server en.xcaretexperiencias.com:/var/www/cgi-bin/cgi_wrapper/cgi_wrapper(7223) started
[Mon Jul 21 16:24:16 2014] [info] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(6608) exit(lifetime expired), terminated by calling exit(), return code: 0
[Mon Jul 21 16:24:19 2014] [info] mod_fcgid: server pt.xcaretexperiencias.com:/var/www/cgi-bin/cgi_wrapper/cgi_wrapper(7390) started
[Mon Jul 21 16:24:23 2014] [info] mod_fcgid: server de.xcaretexperiencias.com:/var/www/cgi-bin/cgi_wrapper/cgi_wrapper(7467) started
[Mon Jul 21 16:24:23 2014] [info] mod_fcgid: server it.xcaretexperiencias.com:/var/www/cgi-bin/cgi_wrapper/cgi_wrapper(7469) started
el-brujo:
En el server-status mira si tienes "idle workers" libres.
Estos son los datos del service-status:
Current Time: Monday, 21-Jul-2014 16:25:48 CDT
Restart Time: Monday, 21-Jul-2014 12:38:40 CDT
Parent Server Generation: 0
Server uptime: 3 hours 47 minutes 8 seconds
Total accesses: 518225 - Total Traffic: 761.7 MB
CPU Usage: u208.37 s87.88 cu0 cs0 - 2.17% CPU load
38 requests/sec - 57.2 kB/second - 1541 B/request
2 requests currently being processed, 53 idle workers
Estos son los valores que tengo anexado al httpd.conf
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 20
MaxSpareServers 60
ServerLimit 456
MaxClients 456
MaxRequestsPerChild 10000
</IfModule>
<IfModule worker.c>
StartServers 4
MaxClients 300
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
y los valores del fcgid.conf es:
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidIdleTimeout 90
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 100
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
estuve monitoreando el numero de conexiones al puerto 80, y se mantiene muy estable:
el-brujo
netstat -an | grep :80 | awk '{ print $5 }' | awk -F: '{ print $1 }' | sort | uniq -c | sort -n
5 187.232.202.137
5 187.242.225.129
5 200.56.194.104
5 86.172.192.107
6 0.0.0.0
6 148.243.168.8
6 187.147.191.105
6 187.153.53.116
6 187.164.56.118
6 187.185.158.112
6 187.209.93.195
6 187.252.41.88
6 189.129.202.201
6 189.133.136.180
6 189.144.41.253
6 189.152.69.127
6 189.163.93.29
6 189.165.176.122
6 189.189.75.119
6 189.198.12.180
6 189.200.56.211
6 189.253.82.28
6 189.254.19.194
6 190.146.150.102
6 201.103.136.9
6 201.166.31.180
6 54.92.93.227
6 84.232.27.231
7 177.228.82.167
7 187.254.245.130
7 201.172.180.125
8 177.124.74.55
9 187.157.41.2
9 201.110.0.129
10 187.194.92.67
12 107.203.14.9
12 118.130.162.70
12 72.201.93.184
13 38.88.230.130
17 189.210.91.162
Realmente ya no se por donde buscarle
No logro dar con el problema del porque el apache deja de operar
Que recomiendan hacer?