struts-user mailing list archives

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

Sri

-----Original Message-----
From: Edgar Dollin [mailto:Edgar@BLUE-MOOSE.NET] 
Sent: Wednesday, July 09, 2003 7:06 AM
To: Sri Sankaran; 'struts-user@jakarta.apache.org'
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 -->
enablePooling=false).

Edgar

> -----Original Message-----
> From: Sri Sankaran [mailto:Sri.Sankaran@sas.com] 
> Sent: Tuesday, July 08, 2003 10:32 PM
> To: 'struts-user@jakarta.apache.org'
> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message