You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Luca Ventura <ve...@libero.it> on 2002/08/01 15:12:43 UTC

How can I ckeck how many users are connected to a Web Site?

Hello everybody!

I would like to know if it is possible to know in any moment
how many users are connected to a Web Site.

How can I do this?

Thanks a lot in advance!

                                  Luca

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How can I ckeck how many users are connected to a Web Site?

Posted by Glenn Nielsen <gl...@voyager.apg.more.net>.
For a Tomcat 4 web application you can use the manager to see how
many active sessions there are.

For Apache you can use its extended-status to see how many
concurrent requests there are and how many httpd processes.

Regards,

Glenn

Luca Ventura wrote:
> Hello everybody!
> 
> I would like to know if it is possible to know in any moment
> how many users are connected to a Web Site.
> 
> How can I do this?
> 
> Thanks a lot in advance!
> 
>                                   Luca
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How can I ckeck how many users are connected to a Web Site?

Posted by Chris Newland <ch...@emorphia.com>.
Hi Luca,

If your website has a login system then you can increment a counter in a
database each time someone logs in, and decrement it when they log out. You
can then build a private admin web page that views the counter. The problem
with this method is that many people just close their browser without
logging out from websites.

A way to solve the logging out problem is to store a "last active" timestamp
against each logged in user and to update it each time they request a page
(you'll need to use cookies / sessions to identify the actions of each
user). You can assume that a user has logged out once a certain period of
inactivity has occurred.

If you don't have a login system on your website, you could use the IP
address of the user making the request and combine this with the inactivity
tracking system mentioned above.

Hope this helps,

Regards,

Chris Newland

> -----Original Message-----
> From: Luca Ventura [mailto:ventural@libero.it]
> Sent: 01 August 2002 14:13
> To: tomcat-dev
> Subject: How can I ckeck how many users are connected to a Web Site?
>
>
> Hello everybody!
>
> I would like to know if it is possible to know in any moment
> how many users are connected to a Web Site.
>
> How can I do this?
>
> Thanks a lot in advance!
>
>                                   Luca
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>