tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: Release of memory
Date Thu, 02 Jan 2003 18:02:27 GMT


On Thu, 2 Jan 2003, √ėyvind 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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message