tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: getsession if you know the id?
Date Mon, 03 Apr 2006 14:23:05 GMT
On 4/3/06, John Powers <jpowers@configureone.com> wrote:
> We were using a list of sessions to report who is logged in now.
> however our sessions don't look like they are being collected by the GC.

Which is right since you maintain a reference to the session object it
can't be GCed. you should check the list periodically and remove
outdated sessions.
Or you pack the session object inside a SoftReference object, with the
drawback of garbage collection under your a...

regards
Leon

> We have a serious memory problem.   I was thinking this list may be a
> problem so I was removing all the actual httpsessions from it and was
> going to just 'get' the session from the application at display time.  I
> can record its ID.. but I can't see a way to get it based on that ID, or
> anything.
>
> -----Original Message-----
> From: Leon Rosenberg [mailto:rosenberg.leon@googlemail.com]
> Sent: Saturday, April 01, 2006 10:49 AM
> To: Tomcat Users List
> Subject: Re: getsession if you know the id?
>
> no, at least not, if you don't track all session yourself.
> Why do you need the session?
>
> Leon
>
> On 4/1/06, John Powers <jpowers@configureone.com> wrote:
> > If you know the id of a session is there anyway to get it out of the
> > application?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message