From: Philip J. <pj...@un...> - 2010-04-13 00:38:52
|
On Apr 12, 2010, at 10:22 AM, Matt Brinkley wrote: > Hi there, > > There appears to be two static maps in PyType that contain class > objects - class_to_type and classToBuilder - that seem to be added to > but never removed from. I think this is problematic - I have witnessed > bugs in reloading jython in a dynamic classloader environment (e.g. > tomcat, osgi) and submitted bug #1327 five months ago on this issue. I > have also seen out of permgen memory errors in Tomcat when running and > re-running large numbers of scripts, which is indicative of classes > being created and not destroyed - in searching through the bug list I > found a few existing bugs on this that also mention class_to_type > (e.g. bugs 1522 and maybe 1589) > > Does anyone have any plans for addressing this issue? It is > significantly impacting my ability to use jython in a web server > environment, and in general keeping a static map of classes that is > never cleaned up is not a good idea. I'll take a look at #1522 with your class_to_type suggestion in mind, I don't think I even noticed your comment about it when I originally looked at your ticket. classToBuilder probably doesn't matter so much -- Philip Jenvey |