i did that and they aren't getting finalized. i made some garbage/tmp objects and they get finalized when the GC runs.
any ideas how we can know when the session itself is finalized? and/or GC'd? any way to have tomcat use a custom httpsession subclass? so that i could write the finalize method in it? -----Original Message----- From: Wang, Hansen [mailto:[EMAIL PROTECTED] Sent: Fri 3/31/2006 5:38 PM To: Tomcat Users List Subject: RE: session GC If you would like something simple and intuitive, you can create a class and overwrite the finalized() method to print out simple log. Then, create a separate object of your class for each httpsession and add it as an attribute of the httpsession. Of cause you want to make sure that you do not keep other references to this object and keep the log simple. Hansen -----Original Message----- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 4:07 PM To: Tomcat Users List Subject: session GC How do you know when a session is garbage collected? You can write a sessionlistener for when it gets deleted out of tomcat, but after that, when do you know if its garbage collected? I currently do not think my sessions are being collected. Within a day 500M of memory get eaten up and I can't collect them manually even. So I want to know when/if the sessions are being collected. If I wrote a subclass to httpsession, how could get tomcat to use it? --------------------------------------------------------------------- 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]