Stuart, Ed wrote:
Hello all;
I new to the administration of an Apache web server and am looking for a
way to see how many clients are connected to the web server. We're
running Apache 2.0.46 on Red Hat AS 4. Netstat gives me connection info,
but shows multiple connections for the clients. How can I report how
many clients are connected to the web server at a given time?
Ed
Just a quick sanity check:
You do understand that there is a big difference between a session
(referenced in your subject) and a connection (referenced in your
message body)?
And you do understand that a connection lasts only for a single
request/response, i.e. less than a second? An active user is constantly
making new connections (for each request).
A session, by definition, lasts over a series of requests/responses. But
it is not part of the HTTP protocol and so must be managed (and counted)
programatically via PHP, perl, autc.
Moreover, there isn't an exact way to tell when a session has ended.
They are usually programmed to time out after a certain number of
minutes of inactivity.
Websites that report the "number of users currently online" probably
cheat a bit by counting either the sessions or distinct IP connections
made over the last five or ten minutes.
--J
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]