Re: [users@httpd] Session Count Question From a Newbie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux