jbonofre opened a new pull request, #2516:
URL: https://github.com/apache/karaf/pull/2516

   The static `ThreadLocal` fields holding `DocumentBuilderFactory`, 
`TransformerFactory` and `SAXParserFactory` pin the ClassLoader of the XML 
provider bundle on long-lived Karaf worker threads. When that bundle is updated 
or refreshed, the old ClassLoader can never be GC'd, causing zombie bundles and 
Metaspace growth.
   
   This patch removes the `ThreadLocal` caching and creates fresh factory 
instances per call. The public API is unchanged.
   
   Fixes #2278


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to