Current Connections VS Current Anon. Users

Current Connections VS Current Anon. Users

am 13.10.2005 19:22:30 von Just1Coder

What is the difference between Current Connections VS Current Anon.
Users ?

Looking at perfmon .. there could be 0 connections but 2 anon users -
how is that so...?

Re: Current Connections VS Current Anon. Users

am 13.10.2005 20:12:10 von IISMVP2005

Connections are connections to the server. Say you have 30 images to
download and the HTML page as well. So 31 seperate connections are required
to download all of these.

Now your browser will not make 31 connections similtainously it will create
maybe 4 connections and queue the others. This is how you can have 1 user
and multiple connections
--
Cheers

Chris

Chris Crowe
http://blog.crowe.co.nz


"J1C" wrote in message
news:1129224150.028616.118020@f14g2000cwb.googlegroups.com.. .
> What is the difference between Current Connections VS Current Anon.
> Users ?
>
> Looking at perfmon .. there could be 0 connections but 2 anon users -
> how is that so...?
>

Re: Current Connections VS Current Anon. Users

am 13.10.2005 23:10:48 von Kristofer Gafvert

Hello,

Are you sure you see 0 connection and 2 anonymous users, and not 2
connections and 0 anonymous users?

Current Connections counts the number of currently opened TCP connections.
For data to be transmited to the client from the server, there has to be a
connection established. Usually, a HTTP client opens 2 or less connections
(because that is what is advised in the HTTP RFC), and HTTP keep-alives is
usually used, so these two connections are kept open for some time. When
the timeout is reached, or something else makes the connection close,
"current connections" decreases.

"Current anonymous users" are the active anonymous requests being
processed. Once the request has been processed (which is quite fast),
"Current Anonymous Users" decrease.

So a typical scenario would be:

1. User requests a page.
2. Current connections increase with one.
3. Current anonymous users increase with one.
4. The request has been processed.
5. Current anonymous users decrease with one.
6. The connection is idle for some time.
7. The connection is closed, and Current Connections decrease with one.


So I can _imagine_ that a scenario when you see 0 connections and 2 users
are when there is long-running request running, and the connection has
been closed, but the request is still being processed (perhaps an infinite
loop?).


--
Regards,
Kristofer Gafvert (IIS MVP)
http://www.gafvert.info/iis/ - IIS Related Info


J1C wrote:

>What is the difference between Current Connections VS Current Anon.
>Users ?
>
>Looking at perfmon .. there could be 0 connections but 2 anon users -
>how is that so...?

Re: Current Connections VS Current Anon. Users

am 13.10.2005 23:18:41 von Kristofer Gafvert

This post was related to IIS 6.0.


--
Regards,
Kristofer Gafvert (IIS MVP)
http://www.gafvert.info/iis/ - IIS Related Info


Kristofer Gafvert [MVP] wrote:

>Hello,
>
>Are you sure you see 0 connection and 2 anonymous users, and not 2
>connections and 0 anonymous users?
>
>Current Connections counts the number of currently opened TCP connections.
>For data to be transmited to the client from the server, there has to be a
>connection established. Usually, a HTTP client opens 2 or less connections
>(because that is what is advised in the HTTP RFC), and HTTP keep-alives is
>usually used, so these two connections are kept open for some time. When
>the timeout is reached, or something else makes the connection close,
>"current connections" decreases.
>
>"Current anonymous users" are the active anonymous requests being
>processed. Once the request has been processed (which is quite fast),
>"Current Anonymous Users" decrease.
>
>So a typical scenario would be:
>
>1. User requests a page.
>2. Current connections increase with one.
>3. Current anonymous users increase with one.
>4. The request has been processed.
>5. Current anonymous users decrease with one.
>6. The connection is idle for some time.
>7. The connection is closed, and Current Connections decrease with one.
>
>
>So I can imagine that a scenario when you see 0 connections and 2 users
>are when there is long-running request running, and the connection has
>been closed, but the request is still being processed (perhaps an infinite
>loop?).

Re: Current Connections VS Current Anon. Users

am 14.10.2005 14:12:04 von Just1Coder

Ah, thanks guys!