domain user for a apache process
oscar at digitalvalley.com
Sat Mar 9 02:43:53 PST 2002
Thanks, i know that The end web-user client has no correlation to any of the
user accounts on
your machine, but since the machines are only used for web hosting services,
it would be great if i had a structured method to know periodically wich
domains are the ones using lots of cpu, memory ...
i can control the bandwitch for every domain so this information gives me a
nice idea about it, however, there are sporadic times when a user is
overloading the apache web server with a cgi and it's hard to find with user
is responsible for the overload.
I had to temporarily shutdown some domains that they were almost crashing
the whole server and i was not able to just find wich domain was hosting the
script responsible for the situation.
how do you find the domain wich overloads the server with one script ( php,
perl ...) ???
i think apache logs and php logs are not enought to catch the user quickly
in an emergency.
I run mod_php with apache and works just fine, there are not problems, but
as i said, there are sporadic situations where i'd like to find a faster
solution to resolve and emergency
----- Original Message -----
From: "jasonp" <jasonp1 at cox.net>
To: <kplug-list at kernel-panic.org>
Sent: Saturday, March 09, 2002 2:17 PM
Subject: Re: domain user for a apache process
> On Saturday 09 March 2002 01:48 am, you wrote:
> > Hello There
> > i have several machines with some domains and i was wondering how i can
> > know the domain for a user who is executing a process ( a php program or
> > any other owned and run by apache) that's been consuming lots of cpu or
> > memory without being monitoring at the same time the machine.
> > I'm monitoring the process with "top", "ps", "w" ... but since the file
> > cgi, php, ...) is run by apache, i'm not sure wich domain is the one
> > is overloading the server
> > any ideas ???
> Well like you found out you're not really interested in who's "logged on"
> your machine but the client making a web request from apache server using
> The end web-user client has no correlation to any of the user accounts on
> your machine.
> Actually it seems like you should looking into the particular code that's
> being run that's causing the extra CPU usage not any user that just
> to cause it to be run.
> Are you using mod_php? It might be a Apache/PHP configuration problem if
> memory and CPU usage are high consistently.
> If it's sporadic, logging is going to be the only way you're going to
> what's causing it. The apache access log has all IP and request info, plus
> you can provide more logging from your PHP I'm sure.
> I'm more familiar with mod_perl not PHP, but with perl there are also
> profiling techniques you can use to find possible bottlenecks.
> list archives http://www.ultraviolet.org
> To unsubscribe, send a message to the address shown in the
> header of this message.
More information about the KPLUG-List