Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been looking into this issue for a long time now and I still can't get to the bottom of it.
The server is Ubuntu 10.04 apache is 2.2 branch...
When it happens, load is not high and memory / swap has plenty of room. Also apache will not deny the connection, it will give the browser some sign of hope because the page will not load or timeout. Nothing will load, not even the apache server-status page.
The second I restart apache, the browser gives the error like the site is down.
I have been looking into this issue for a long time now and I still can't get to the bottom of it.
The server is Ubuntu 10.04 apache is 2.2 branch...
When it happens, load is not high and memory / swap has plenty of room. Also apache will not deny the connection, it will give the browser some sign of hope because the page will not load or timeout. Nothing will load, not even the apache server-status page.
The second I restart apache, the browser gives the error like the site is down.
Any suggestions of what to look at?
Thanks!
The Apache logs would be the very first thing I'd check...but it sounds like you've checked the obvious, and have ruled out the network, system load, memory, and swap. How about disk space, just on an off chance?? Also, depending on how often it happens, have you considered starting Apache with more verbosity in the logs, to see if you catch anything different? http://www.devshed.com/c/a/Apache/Logging-in-Apache/
Also, some of this may depend on what the page(s) are serving up. Are they PHP, Java, Javascript, and/or database dependent?? Any one of those could be a factor. Restarting Apache may just kill the bad process that's locking things up...
Yes, I forgot to mention how much I have put into this. I have sat and tailed the verbose logs - after three times of seeing anything before it happens - I gave up on that front.
Disk space is plentiful, swap / ram is always good - not using selinux or apparmour, ulimit is never reached. No quotas or anything else going on. It is not a network issue - if it is, it is the strangest one I have ever seen. Using a hardware firewall that has never been suspected of anything odd. From the shell (local) I can't load a page using telnet or links / lynx. Those behave similar to a modern browser as I originally explained. Not using any php caches either.
Most of the pages are php and cgi, no java, some mysql, some postgres connections, but these continue to work when apache fails.
If anyone has some more ideas or even some insight
Yes, I forgot to mention how much I have put into this. I have sat and tailed the verbose logs - after three times of seeing anything before it happens - I gave up on that front.
Disk space is plentiful, swap / ram is always good - not using selinux or apparmour, ulimit is never reached. No quotas or anything else going on. It is not a network issue - if it is, it is the strangest one I have ever seen. Using a hardware firewall that has never been suspected of anything odd. From the shell (local) I can't load a page using telnet or links / lynx. Those behave similar to a modern browser as I originally explained. Not using any php caches either.
Most of the pages are php and cgi, no java, some mysql, some postgres connections, but these continue to work when apache fails.
If anyone has some more ideas or even some insight
With that, I will mention that this server is running Plesk. I have had a few Plesk developers look into this and they all agree it has nothing to do with Plesk. Most sites are running as a module, but some may be running as CGI / FCGI.
I will also note that we also run a lighttpd instance on the same machine, bound to a different IP. This site relies heavily on PHP and it continues to function while apache is down - and this is unrelated to lighttpd because this issue was present before we started running lighttpd.
With that, I will mention that this server is running Plesk. I have had a few Plesk developers look into this and they all agree it has nothing to do with Plesk. Most sites are running as a module, but some may be running as CGI / FCGI.
I will also note that we also run a lighttpd instance on the same machine, bound to a different IP. This site relies heavily on PHP and it continues to function while apache is down - and this is unrelated to lighttpd because this issue was present before we started running lighttpd.
Thanks
I think I miss something - if Apache is down how anything website-related can function?
I was just noting that if it is somehow a PHP related issue, that the lighttpd instance is not affected by it, it is a separate server on the same machine.
I was just noting that if it is somehow a PHP related issue, that the lighttpd instance is not affected by it, it is a separate server on the same machine.
Apache used by default on Ubuntu is multi-threade (it uses MPM worker) PHP is known to be not thread safe.
You can try to use apache with MPM-prefork instead and see if it help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.