Apache server consistently going unresponsive with CPU intensive webservices
ps -eo pmem,pcpu,rss,vsize,args --sort -pmem | less
and I can see there are many apache2 threads spawned. Here is what I saw before starting apache while my server was unresponsive still:
![](http://i.imgur.com/7492mLS.png)~~![](</s><URL url=)http://i.imgur.com/7492mLS.png<e>" /></e>
then I restarted apache, which fixed the problem, but I still see a ton of the apache2 threads
![](http://imgur.com/GyLRhT8.png)~~![](</s><URL url=)http://imgur.com/GyLRhT8.png<e>" /></e>
I suspect the issue must stem from my apache2.conf settings, which I set basically according to the recommendations of the linode docs. Here is a relevant part of my apache2.conf:
KeepAlive Off
````
I am fairly new to managing the server myself, and I am unsure about the above configuration as I know it is dependent on the type of application being run on apache. I have cron jobs that are CPU intensive running every two hours, and I also have a web service on my server (built by me) that gets a lot of traffic and is also CPU intensive, given this information, can anyone point me in a right direction to try and get to the bottom of this? Thank you
Additional info about setup:
Was on linode 2GB RAM plan (had the issue) - now on 4GB RAM and problem still persists
Ubuntu 12.04 - 90 GB allocated to disk
LAMP stack~~~~