tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Morelock <>
Subject Re: Any way to tell how many sessions exist?
Date Mon, 03 Jun 2002 23:56:30 GMT
This is a good way to cut straight to it, but
this is more expensive and less portable than HttpSessionListener or
HttpSessionBindingListener solutions.

If you want "container independent" I would go with
HttpSessionBindingListeners as they seem to be supported best across


On 6/3/02 2:39 PM, "Subir Sengupta" <> wrote:

> Standard Manager has a findSessions() method, which will return an array of
> all session in the Hashtable.
> -----Original Message-----
> From: Rick Mann []
> Sent: Monday, June 03, 2002 4:20 AM
> To: tomcat user
> Subject: Any way to tell how many sessions exist?
> I wanted to write a JSP to display server stats. I was hoping to be able to
> get all the sessions, show how many there were, what their ages were, etc.
> But it appears that access to the collection of sessions has been deprecated
> from the Servlet 2.3 API.
> Is there a way to get at this info, preferrably in a container-independent
> manner? I will settle for a Tomcat-specific solution.
> TIA,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message