XMLReaderManager can hold too much memory ------------------------------------------
Key: XALANJ-2378 URL: https://issues.apache.org/jira/browse/XALANJ-2378 Project: XalanJ2 Issue Type: Improvement Components: Xalan Affects Versions: The Latest Development Code, 2.7.1 Reporter: Brian Minchau XMLReaderManager has a scheme where each thread holds its own XMLReader for re-use across subsequent transformations. For example each thread used to run a servlet would cache and re-use the rather large heavy weight XMLReader for re-use. The problem is that this may lead to memory exhaustion in the name of performance. This is not a memory leak that gets larger with time, but rather that too many XMLReader-s may be cached and cause memory exhaustion. Since we have moved beyond JRE 1.1.8 we can now use newer memory services, for example we can hold the references to XMLReader-s with weak references that can be garbage collected when memory runs low. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]