I have a Ubuntu 64 webserver with Apache, Mysql, php5, and ssh. 265MB ram, unlimited Swap. (about 1TB) My issue: Today the webserver was down, I tried to ssh to it and it was Extremely slow. I stoped apache, and tried to restart it a few times by first killing stray apache ps as needed until all related to apache was stoped. It failed to start and was very slow. I then shut the server unit down and started it up. When I checked the server box statistics it showed usage in the past hour as:
Swap: 50mb (read) 30MB (write) 11:00am Swap: 146GB (read) 6GB (write) 12:00am The CPU was also high, but not to a allarming extent. My questions are: How do I solve this apache2 issue? (this is the second time it happened, after the first 3months ago I did a New install) And how do I prevent it? What configs can I change to prevent apache from using more than a certain amount of ram?
Thank you