Who is eating up Apache? :)

3 posts / 0 new
Last post
#1 Tue, 03/20/2012 - 09:27
Hans

Who is eating up Apache? :)

Is there a way to tell, which of my vm virtual servers is consuming the most resources? apache is frequently using over 50% CPU I would like to know where to find the website, that causes this.

Thanks,

Hans

Tue, 03/20/2012 - 10:08
andreychek

Howdy,

Yeah, it's not always simple to determine that.

If you're using CGI or FCGID, which runs scripts as the domain owners, you could always run "top" to see which users frequently have PHP apps in the process list.

You could also go into MySQL, and run the command "show full processlist" to see if any queries are causing issues -- you can see what databases a given query is accessing with that, which would help you track down the culprit.

-Eric

Tue, 03/20/2012 - 10:19
Hans

no cgi's running w. UID. MySQL is fine too and "top" is who just told me Apache has several processes w. 30%, 56%, 40% etc. :)

I thought there was a way within vm to show which instance is "guilty" - bw.pl gives an indication of who generates most traffic but that is not necessarily the one who generates the most load on the CPU.

Na, if there is no vm-solution, we are probably "off-topic" here and I will have to keep looking.

Thanks anyway :)