> From: Robert Harper [mailto:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to