Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2.1
-
None
-
%
-
6.3 Sprint 3 (Feb 29 - Mar 25)
Description
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.