having lot of waiting connection will cause high CPU usage?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

having lot of waiting connection will cause high CPU usage?

howard chen
Hi,

In one of my server, the nginx status return the following

Active connections: 3595 
server accepts handled requests
 95329528 95329528 118118629 
Reading: 334 Writing: 49 Waiting: 3212 

There are a lot of "Waiting" connection, and the CPU load average is around 2, I am using the default Keep alive timeout of 65s.

I am thinking what should be done in order to reduce the load average. (I am using SSL for the connection)


Thanks.

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: having lot of waiting connection will cause high CPU usage?

antituhan
Could you post 10 line of this command :
$ vmstat 1

Have you insert reset_timedout_connection directive to your conf?
[daemon@antituhan.com ~]#
Reply | Threaded
Open this post in threaded view
|

Re: having lot of waiting connection will cause high CPU usage?

howard chen


On Wed, Nov 28, 2012 at 3:35 AM, antituhan <[hidden email]> wrote:
Could you post 10 line of this command :




Which command?

Thanks.

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: having lot of waiting connection will cause high CPU usage?

antituhan
Type vmstat 1
[daemon@antituhan.com ~]#
Reply | Threaded
Open this post in threaded view
|

Re: having lot of waiting connection will cause high CPU usage?

howard chen
Hi,

Really sorry for the late reply.

My vmstat 1 is:

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 1  0  15536  40376  47352 1017532    0    0     5    11    1    0 13 26 61  0
 3  0  15536  40624  47360 1017420    0    0     0    20 8094 3010 19 29 53  0
 1  0  15536  40128  47360 1017492    0    0     0     0 8338 2893 19 32 49  0
 1  0  15536  40096  47360 1017576    0    0     0     0 8724 3118 27 29 45  0
 2  0  15536  39880  47360 1017684    0    0     0     8 9030 3155 27 25 47  0
 3  0  15536  39632  47368 1017792    0    0     0    56 9053 2969 26 28 46  0
 2  0  15536  39260  47376 1017892    0    0     0    20 8549 3094 22 26 52  0
 2  0  15536  39260  47376 1017864    0    0     0     0 8637 3228 23 26 51  0
 4  0  15536  39064  47380 1017472    0    0     4     0 8571 3142 24 28 48  0
 4  0  15536  39592  47380 1017440    0    0     0    20 8683 3084 26 27 47  0
 2  0  15536  39468  47388 1017476    0    0     0   148 8730 3154 30 24 46  0



On Thu, Nov 29, 2012 at 12:12 AM, antituhan <[hidden email]> wrote:
Type *vmstat 1*



-----
[[hidden email] ~]#
--
View this message in context: http://nginx.2469901.n2.nabble.com/having-lot-of-waiting-connection-will-cause-high-CPU-usage-tp7582492p7582708.html
Sent from the nginx mailing list archive at Nabble.com.

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx