On 4/3/06, John Powers <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> wrote:
> > If you know the id of a session is there anyway to get it out of the
> > application?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to