Pack you HttpSessions in WeakReference objects so they can be GCed (*not* SoftReferences as suggested because SoftReference are only GCed when outofmemory, while WeakReference are gced about as soon as the object is not reachable anymore by hardreference).
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ref/WeakReference.html http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/WeakReference.html John Powers a écrit : >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. >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. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]