Issue Details (XML | Word | Printable)

Key: MODELER-15
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Chris
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Modeler

[modeler] IntrospectionUtils memory leak

Created: 08/Sep/05 10:32 PM   Updated: 15/Feb/07 09:39 AM
Return to search
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 2.0

Time Tracking:
Not Specified

Environment:
Operating System: other
Platform: Other

Bugzilla Id: 36559
Resolution Date: 13/Jul/06 10:11 AM


 Description  « Hide
When I reload my webapp, and I profile, I see Method objects in
IntrospectionUtils grow and grow (to the thousands of instances), and none of
my class Objects (or static references) get collected.

This is in the objectsMethods HashTable.

One suggestion: remove the caching
or
Another suggestion: add a method that clears it (or clears it for a certain
classloader), and make sure this method gets called from Tomcat when it
unloads a webapp (since I dont know how a webapp could call this method if
this class is loaded from the system classloader)

More info:

http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?
pageId=2669

Thanks!
Chris



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Bill Barker added a comment - 05/Jun/06 07:52 AM
A method has been added to IntrospectionUtils to clear the cached methods (similar to the one in the Tomcat class that this was stolen from . Of course, it won't have any effect until the next release of Modeler, and after that when the Tomcat team decides to upgrade to it.

However, this has already been fixed for Tomcat 6.x with an independent patch.


Henri Yandell added a comment - 12/Jul/06 12:01 PM
Bill - is this issue resolvable, or something more has to happen before a modeler release can go ahead?

Bill Barker added a comment - 13/Jul/06 02:51 AM
It's resolved as far as Modeler is concerned. There needs to be some minor changes in Tomcat for it to have any effect.

Henri Yandell added a comment - 13/Jul/06 03:46 AM
Is there any issue to that effect within Tomcat's bugzilla that I can point to when I resolve this one?

Bill Barker added a comment - 13/Jul/06 09:51 AM
A quick search of BZ doesn't show any (and I don't remember seeing one come through dev@tomcat). I think that Chris actually knew what he was doing, and posted to the correct list .