tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: tomcat memory usage questions
Date Tue, 03 Oct 2006 14:26:38 GMT
> From: Robert Harper [mailto:robert@iat-cti.com] 
> Subject: RE: tomcat memory usage questions
> 
> Care in development should be taken with respect to use of objects and
> having circular references. You can cause memory leaks with circular
> references because you might leave free and object from the servlet
> but then have two objects referring to each other and the GC will not 
> see them as having gone out of scope.

Simply not true.  Only reference counter collectors have issues with
circular references, and no modern JVMs use that technique.  A set of
objects that are referenced only by themselves are not reachable from
the roots and are easily collectable.

Here's a decent reference for memory tuning:
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message