Re: [us...@httpd] apache hanging whole system

2010-05-21 Thread Peter Halicky
Hi everyone, the problem now seems to be solved - it turned out that it was not a problem of apache, or php or mysql. The problem was that the hypervisor where I run the VM with apache started swapping to disk... I killed some unnecessary VMs and now I haven't seen this problem happen again. Anyw

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Peter Halicky
Hi Tom, PHP: The RES size of the apache processes is around 25Mb, which totals to about 2Gb with 80 processes. The VM is configured with 3Gb RAM, so memory should be OK. Mysql: This, I think, is the most likely explanation - mysql locks. To avoid this, I tried to set max_execution_time in mysql t

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Tom Evans
On Sun, May 16, 2010 at 9:42 PM, Peter Halicky wrote: > Hi, > > I run a "LAMP" server with a few websites, one of them quite busy. I use > Ubuntu 8.04 with apache 2.2.8 > and PHP 5.2.4. The problem is this: about once a day, apache processes > cause the system load to go very > high (today it was

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Peter Halicky
Thanks for the info, I was just trying everything to somehow fix the problem, I was suspecting some kind of leak, but it is apparently not the case... Before the problems started (and I started fixing it) it was set to 0, the setting has no effect on the problem. On 17.05.2010 17:19, Jeff Trawick

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Jeff Trawick
On Sun, May 16, 2010 at 4:42 PM, Peter Halicky wrote: > Hi, > > I run a "LAMP" server with a few websites, one of them quite busy. I use > Ubuntu 8.04 with apache 2.2.8 > and PHP 5.2.4. The problem is this: about once a day, apache processes > cause the system load to go very > high (today it was

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Peter Halicky
Hi Igor, I use awstats, but that also doesn't show too much (I looked at the actual logs of apache in the period when this problem happened). I also think it's either PHP or MySQL, but there are very many scripts on the server, first I'd like to know which script/file is causing this, then I can l

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Igor Cicimov
Peter...apart from the one mentioned above there are bunch of tools you can use to monitor and analyze your server like webalizer, awstats etc. From what you have given us above I would expect that PHP is the culprit in this situation ... except if your application has a database back end in which

Re: [us...@httpd] apache hanging whole system

2010-05-16 Thread Peter Halicky
Hi Morten, this is just what I was looking for! I'll give it a try. Thanks! Peter On 17.05.2010 01:13, Morten Shearman Kirkegaard wrote: > Hi Peter, > > On Sun, 2010-05-16 at 22:42 +0200, Peter Halicky wrote: > >> The problem is this: about once a day, apache processes cause the >> system loa

Re: [us...@httpd] apache hanging whole system

2010-05-16 Thread Peter Halicky
Hi Igor, that's not the case, whatever I set the MaxClients to, it will happen, just the degree of system non-responsiveness is higher. Thanks, Peter On 17.05.2010 01:13, Igor Cicimov wrote: > > Sounds like you r running out of capacity. If the RAM is not an issue > increase the MaxClients. Also

Re: [us...@httpd] apache hanging whole system

2010-05-16 Thread Igor Cicimov
Sounds like you r running out of capacity. If the RAM is not an issue increase the MaxClients. Also run $ pgrep apache2 ¦ wc -l Or $ pgrep httpd ¦ wc -l to confirm you are reaching 80 Sent from my phone On May 17, 2010 6:43 AM, "Peter Halicky" wrote: Hi, I run a "LAMP" server with a few websit

Re: [us...@httpd] apache hanging whole system

2010-05-16 Thread Morten Shearman Kirkegaard
Hi Peter, On Sun, 2010-05-16 at 22:42 +0200, Peter Halicky wrote: > The problem is this: about once a day, apache processes cause the > system load to go very high (today it was ~30). ... > I configured a mod_status URL which I am monitoring, to see what is > making apache so busy. Unfortunately,

[us...@httpd] apache hanging whole system

2010-05-16 Thread Peter Halicky
Hi, I run a "LAMP" server with a few websites, one of them quite busy. I use Ubuntu 8.04 with apache 2.2.8 and PHP 5.2.4. The problem is this: about once a day, apache processes cause the system load to go very high (today it was ~30). During this time, I can not display any webpage on my server.