About ServerLimit

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

About ServerLimit

Mahmood Naderan
Hello

When I set ServerLimit to 500, does that include all TCP connection states? I mean
are all these counted by ServerLimit? Or just ESTABLISHED is counted?


tcp6       0      0 192.168.168.91:443      X:18212     FIN_WAIT2   -
tcp6       0      0 192.168.168.91:443      X:14756     TIME_WAIT   -
tcp6       0      0 192.168.168.91:443      X:56033      FIN_WAIT2   -
tcp6       0      0 192.168.168.91:443      X:15956      TIME_WAIT   -
tcp6       0      0 192.168.168.91:443      X:49650       ESTABLISHED -
tcp6       0      0 192.168.168.91:443      X:63982       TIME_WAIT   -
tcp6       0      0 192.168.168.91:443      X:53249      TIME_WAIT   -



Regards,
Mahmood
Reply | Threaded
Open this post in threaded view
|

Re: About ServerLimit

Eric Covener
On Wed, Jul 8, 2020 at 5:44 AM Mahmood Naderan
<[hidden email]> wrote:

>
> Hello
>
> When I set ServerLimit to 500, does that include all TCP connection states? I mean
> are all these counted by ServerLimit? Or just ESTABLISHED is counted?
>
>
> tcp6       0      0 192.168.168.91:443      X:18212     FIN_WAIT2   -
> tcp6       0      0 192.168.168.91:443      X:14756     TIME_WAIT   -
> tcp6       0      0 192.168.168.91:443      X:56033      FIN_WAIT2   -
> tcp6       0      0 192.168.168.91:443      X:15956      TIME_WAIT   -
> tcp6       0      0 192.168.168.91:443      X:49650       ESTABLISHED -
> tcp6       0      0 192.168.168.91:443      X:63982       TIME_WAIT   -
> tcp6       0      0 192.168.168.91:443      X:53249      TIME_WAIT   -

It's complicated and depends on the MPM used. When you see states
FIN_WAIT1 or  FIN_WAIT2 or CLOSE_WAIT there will generally be a thread
tied up in the server still.  TIME_WAIT does not.
But it's more straightforward to use /server-status if you care about
things like ServerLimit then trying to reverse engineer from netstat.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: About ServerLimit

Mahmood Naderan

>But it's more straightforward to use /server-status if you care about
>things like ServerLimit then trying to reverse engineer from netstat.



OK I can see that report.

It is saying that 109 requests currently being processed., 18 idle workers.


Is that 109 the same as the number of apache2 process like below:

ps aux | grep apache | wc -l

?


Regards,
Mahmood


Reply | Threaded
Open this post in threaded view
|

Re: About ServerLimit

Mahmood Naderan
One more thing. With this output

WKWWKWRKKRKWWKWWRWWRRKWWKRWKKR.RWR._W_R.RKRKK.RCWWKW_R.W..KKWWK.
WCWKKK_KWWWRR.R.WWWW.WWKWWRK.WWWRRW.WWW.WRK_WR.R..KWWKKRW.KCWK.W
..R........_..WW................................................
................................................................
................................................................
................................................................
................................................................
....................................................


Should I worry about W which means sending reply?



Regards,
Mahmood


Reply | Threaded
Open this post in threaded view
|

Re: About ServerLimit

Eric Covener
In reply to this post by Mahmood Naderan
On Wed, Jul 8, 2020 at 7:49 AM Mahmood Naderan
<[hidden email]> wrote:

>
>
> >But it's more straightforward to use /server-status if you care about
> >things like ServerLimit then trying to reverse engineer from netstat.
>
>
>
> OK I can see that report.
>
> It is saying that 109 requests currently being processed., 18 idle workers.
>
>
> Is that 109 the same as the number of apache2 process like below:
>
> ps aux | grep apache | wc -l

If you use prefork, you will see close to 109+18 processes.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]