Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 3632 invoked from network); 2 Jan 2003 18:02:54 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Jan 2003 18:02:54 -0000 Received: (qmail 8184 invoked by uid 97); 2 Jan 2003 18:03:52 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 8153 invoked by uid 97); 2 Jan 2003 18:03:51 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 8141 invoked by uid 98); 2 Jan 2003 18:03:51 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Thu, 2 Jan 2003 10:02:27 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Users List Subject: RE: Release of memory In-Reply-To: <000801c2b288$35f46260$24d2d5c1@templar> Message-ID: <20030102095932.P32661-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 2 Jan 2003, =D8yvind Hvamstad wrote: > > But if tomcat releases the reference to the servlet, the hole thing > should be garbage collected. Tomcat does not release references to the servlet. In fact, it's totally up to the container (not to you) to decide how long a servlet instance will stay initialized. What you want to do is make sure that your *servlet* does not maintain any references to the report results for the previously generated report. Then, those objects can get GC'd. Of course, you're still going to have problems when multiple users ask for reports to be generated at the same time, if you've only got enough memory to do one -- but that's a separate issue. Craig -- To unsubscribe, e-mail: For additional commands, e-mail: