-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: jboss-fuse-6.2.1
-
Fix Version/s: fuse-7.0
-
Component/s: WildFly Camel
-
Labels:None
-
Environment:
Fuse 6.2.1 on EAP 6.4
-
Sprint:6.3 Sprint 3 (Feb 29 - Mar 25)
Redeploying a simple SY application several times results in OOME when running Fuse 6.2.1 on EAP with a small metaspace.
Further investigation revealed that classloaders are leaking across redeploys. The classloaders are being retained in ContextCreateHandlerRegistryService$ContextCreateHandlerRegistryImpl's handler mapping.
PackageScanResolverProcessor only calls createHandlerRegistry.removeContextCreateHandler(classLoader, contextCreateHandler); but not removeContextCreateHandlers(ClassLoader classsLoader) which would remove the ClassLoader entries from the handlerMapping Map.