OS = CentOS-6.4 Uptime = 4 days, 1:31, httpd-2.2.15 SELinux=enforcing audit2why -l -a = nil report Since upgrading a public web service host from dedicated hardware running CentOS-5.x to a KVM virtual host running CentOS-6.3 I have experienced intermittent ( one every couple of months) halts by the Apache web service. There is never any trace left in any of the logs, there are no SELinux avc's recorded, and the rest of the system remains up. It is just the httpd service that stops. I have an automatic restart job in place so this is not a show stopper. But I am concerned that this behaviour is pointing to a fundamental problem somewhere. Has anyone else experienced this? Are there any ideas as to what could be causing this? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
> It is just the httpd service that stops.Define 'stops' Are there any httpd processes still running? What are you doing with the server - php, proxy to tomcat, etc There's very little information to go on in your post...
On Mon, April 29, 2013 09:02, James Hogarth wrote:>> It is just the httpd service that stops. > > Define 'stops'Attempts to access the web sites served by that service report Server not Found. Running 'service httpd start' starts the service.> > Are there any httpd processes still running?No.> > What are you doing with the server - php, proxy to tomcat, etcStraight-up static web sites. Nothing fancy or dynamic. No CGI scripts.> > There's very little information to go on in your post... > >You have what I have. There is simply no trace of the process by the time my periodic (every 15 minutes) sweep notices that the httpd process is gone and restarts it. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
On Tue, Apr 30, 2013 at 10:59 AM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:> > You have what I have. There is simply no trace of the process by the > time my periodic (every 15 minutes) sweep notices that the httpd > process is gone and restarts it.My first guess on mysterious process death on Linux is always the kernel out-of-memory killer. But I think that is logged somewhere. -- Les Mikesell lesmikesell at gmail.com
On 2013-04-30, Les Mikesell <lesmikesell at gmail.com> wrote:> > My first guess on mysterious process death on Linux is always the > kernel out-of-memory killer. But I think that is logged somewhere.By default the OOM messages should go to the kernel ring buffer (so use dmesg to see). I think that they also go to syslog, so should also be in /var/log/messages. --keith -- kkeller at wombat.san-francisco.ca.us