You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by vishesh kumar <li...@gmail.com> on 2011/03/15 17:38:38 UTC
[users@httpd] Which domain causing slowness.
Dear all
I have a number of domain using different named virtual host. I want to know
which virtual host is causing delay on my apache web server. I am suing
apache 2 on centos 5.5?
Any suggestion
i don't want to use awstat or nagios .
Thanks
vishesh kumar
--
http://linuxmantra.com
Re: [users@httpd] Which domain causing slowness.
Posted by vishesh kumar <li...@gmail.com>.
Thanks mark for your wonderful suggestion. I will go through LogFormat and
revert back here.
Thanks
On Tue, Mar 15, 2011 at 11:42 PM, Mark Montague <ma...@catseye.org> wrote:
> On March 15, 2011 12:38 , vishesh kumar <li...@gmail.com>wrote:
>
> I have a number of domain using different named virtual host. I want to
> know which virtual host is causing delay on my apache web server. I am suing
> apache 2 on centos 5.5?
>
>
> Use the LogFormat directive to add the request processing time in
> microseconds (%D) to each access log entry. You may also find the %v option
> helpful in order to log the name of the virtual host. Be careful to not
> cause problems for any program that reads your web server access logs --
> such as awstats -- when you do this. After restarting httpd, you'll be able
> to see how long each request actually took to process; if there is a certain
> page that is taking a very long time, it should stand out from the others.
>
> For more information about the LogFormat directive, see the documentation:
> http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats
>
> Also, if you give us more information about the problem you are having, we
> may be able to give you better suggestions. What sort of delay are you
> seeing? How long is the delay? Is it with some requests or all requests?
> Are you serving only static HTML pages, or are you using some sort of
> dynamic content? If dynamic content, what kinds?
>
> --
> Mark Montague
> mark@catseye.org
>
>
--
http://linuxmantra.com
Re: [users@httpd] Which domain causing slowness.
Posted by Mark Montague <ma...@catseye.org>.
On March 15, 2011 12:38 , vishesh kumar <li...@gmail.com> wrote:
> I have a number of domain using different named virtual host. I want
> to know which virtual host is causing delay on my apache web server. I
> am suing apache 2 on centos 5.5?
Use the LogFormat directive to add the request processing time in
microseconds (%D) to each access log entry. You may also find the %v
option helpful in order to log the name of the virtual host. Be careful
to not cause problems for any program that reads your web server access
logs -- such as awstats -- when you do this. After restarting httpd,
you'll be able to see how long each request actually took to process; if
there is a certain page that is taking a very long time, it should stand
out from the others.
For more information about the LogFormat directive, see the
documentation:
|http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats|
Also, if you give us more information about the problem you are having,
we may be able to give you better suggestions. What sort of delay are
you seeing? How long is the delay? Is it with some requests or all
requests? Are you serving only static HTML pages, or are you using some
sort of dynamic content? If dynamic content, what kinds?
--
Mark Montague
mark@catseye.org