struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sri Sankaran" <>
Subject RE: NestedIterateTag won't let go of collection
Date Wed, 09 Jul 2003 14:55:25 GMT
Disabled pooling.  No cigar :(


-----Original Message-----
From: Edgar Dollin [mailto:Edgar@BLUE-MOOSE.NET] 
Sent: Wednesday, July 09, 2003 7:06 AM
To: Sri Sankaran; ''
Subject: RE: NestedIterateTag won't let go of collection

There is a known bug if the collection is passed in directly (i.e.
<%=myCollection%>).  If the collection is passed in as a bean in the
session, at least certain tags handle it correctly.  The other thing to try
is to disable tag pooling ($TOMCAT_HOME/conf/web.xml -->


> -----Original Message-----
> From: Sri Sankaran [] 
> Sent: Tuesday, July 08, 2003 10:32 PM
> To: ''
> Subject: NestedIterateTag won't let go of collection
> Using: Struts 1.1
> Servlet Container: Tomcat 4.1.24
> In the process of studying the memory footprint of my 
> application, I found that certain objects were not getting 
> garbage collected even though there were no apparent 
> references.  The biggest culprit was a rather large 
> collection that was being displayed using <nested:iterate>.  
> I am mentioning *how* it is being displayed only because 
> JProbe revealed that the reason the collection isn't getting 
> free'd is because the associated NestedIterateTag object was 
> maintaining a reference to it - even after the user session 
> was invalidated.  
> I realize that this may not be Struts-issue per se but one of 
> how Tomcat manages (reuses) tags.  Have you seen such 
> behavior and is there a way to coerce tag to free the 
> application object?
> Thanks
> Sri

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message