No..the request object uses memory only during its scope, a single request. Once the response goes back, the thread is freed up as well as any data (objects) created during that request. HOWEVER, there is one instance as far as I know..that can keep objects around after a request. The only thing that I know of is if you put an object in the request that has another reference to that same object in a longer scope. For example, if you store an object in the HttpSession or ServletContext, and put that same object in the request (say before forwarding to a JSP page or something), it will reside in memory until ALL references to the object are nulled out. In this case, if you have an object that has a reference to it stored in the HttpSession (or ServletContext) AND you have a reference to that object stored in the request object, then the actual memory will stay in use until the httpsession expires or you remove the object from the httpsession (or ServletContext). The GC won't do its thing until it can, so even though Java handles memory for you, you still have to do your part in making sure all references to an object in memory are nulled out. > -----Original Message----- > From: Jim Huffsmith [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 06, 2000 1:34 PM > To: [EMAIL PROTECTED] > Subject: request object & system memory (again) > > > (I posted this question yesterday, but our ISP went down > right afterwards. > As a result, I was cut off from the list and didn't see any of the > responses. Can we try it again?) > > I've heard that you should be careful not to overload the > session object > with data because it can have a big impact on memory > requirements. Is this > an issue with the request object as well? Or does the request object's > shorter lifetime make it a non-issue? > > > Jim Huffsmith > Dove Solutions > 641-469-5877 x103 > > ============================================================== > ============= > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
