Welcome! Log In Create A New Profile

Advanced

Re: active connections of nginx continually increase

May 25, 2012 10:04PM
Reinis Rozitis Wrote:
-------------------------------------------------------
> > from 3000 to 5000, 10000 .... 10k ... 50k, and
> never reduce even in the late night.
>
> Just to be sure - are you not by any chance
> reading the all time total values (3rd line)
> instead of the actual ones which are on
> 4th?
> e.g. can you show what's your 'stub_status on';
> location output actually looks like?
>

thanks for your remind. I'm for sure to record the 1st line and 4th line of the status output

curl http://server1/status
Active connections: 40265
server accepts handled requests
16856987 16856987 28380346
Reading: 2583 Writing: 267 Waiting: 37415

and on the web server at the same time:
netstat -nap | grep EST | grep 80 | wc -l
3818

I recorded the numbers using the following scripts, it has been tested.

RAWdata=`curl http://${Host}/status 2>/dev/null`
ToNagios=`echo $RAWdata |
awk '{
if ($3 > '$Active_Num_WARNING' || $12 > '$Read_Num_WARNING' || $14 > '$Write_Num_WARNING' || $16 > '$Wait_Num_WARNING' )
printf( "'$Host'" " Warning |Active_connections_are="$3 ";;;; Reading="$12 ";;;; Writing="$14 ";;;; Waiting="$16 ";;;;")
else
printf( "'$Host'" " OK |Active_connections_are="$3 ";;;; Reading="$12 ";;;; Writing="$14 ";;;; Waiting="$16 ";;;;")
}'`

sample output:
[xxx@desktop ~]$ RAWdata=`curl http://server1/status 2>/dev/null`
[xxx@desktop ~]$ echo $RAWdata
Active connections: 44476 server accepts handled requests 17371377 17371377 29208687 Reading: 2839 Writing: 312 Waiting: 41325

from the diagram recorded, you can see not only waiting but also reading , writing are all increasing

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

active connections of nginx continually increase

tntzwz May 25, 2012 11:58AM

Re: active connections of nginx continually increase

Reinis Rozitis May 25, 2012 12:14PM

Re: active connections of nginx continually increase

tntzwz May 25, 2012 10:04PM

Re: active connections of nginx continually increase

Maxim Dounin May 27, 2012 01:20PM

Re: active connections of nginx continually increase

tntzwz May 28, 2012 12:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready