Welcome! Log In Create A New Profile

Advanced

Re: Weird apache status values with nginx

Maxim Dounin
July 20, 2012 05:52AM
Hello!

On Thu, Jul 19, 2012 at 11:52:00AM -0400, migue76 wrote:

> Thanks for your explanation Maxim.
>
> I think the results are not correct because I switch off nginx and
> values come correct again. I swich on nginx and I get weird values. That
> is why.
>
> You said:
> >The fact that Apache's cpu usage is different from what you have
> >without nginx might have many reasons. Possible ones are ranging
> >from incorrect Apache configuration which causes neeedless process
> >startup/shutdown (which now happens more often due to low worker
> >process utilization) to just a simple fact that your system
> >handles more requests now (and consumes more CPU as a result) due
> >to no longer being limited by some other resource.
>
> Any tip, clue or url to start investigating about this?

I would try to calculate something like "cpu seconds per request"
metric and if it doesn't match previously seen values - start digging
where additional cpu seconds go. Playing with Apache settings
like MaxClients/MaxSpareServers/MinSpareServers might be helpfull,
as well as monitoring various things like system fork rate and so on.

Note though that some difference is normal, e.g. due to the fact
that nginx doesn't use keepalive to upstream servers by default.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Weird apache status values with nginx

migue76 July 17, 2012 01:28PM

Re: Weird apache status values with nginx

Maxim Dounin July 19, 2012 08:08AM

Re: Weird apache status values with nginx

migue76 July 19, 2012 11:52AM

Re: Weird apache status values with nginx

Maxim Dounin July 20, 2012 05:52AM

Re: Weird apache status values with nginx

migue76 July 20, 2012 06:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready