Hi, Per the Servlet Specification, when a session is destroyed all its attribute references are cleared. Then normal garbage collection rules apply: if there are no other references to these objects, they can be garbage collected, and you don't have to worry about it. If there are other references to these objects, they cannot be garbage collected.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Jon Yeargers [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 15, 2004 1:19 PM >To: 'Tomcat Users List' >Subject: Foolish Java / Tomcat question > ><asbestos underwear> > >So I get the concept of the garbage collector.. at least in principal.. >but what happens to all the memory that gets allocated for a tomcat >session (by a single login) when that session closes or is timed out? > >is *everything* from that session decremented so it can be cleaned up? > >do I need to be checking for this? > >what about session beans and variables stored therein? > ></asbestos underwear> > >thanks. let the scorching begin. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
