Redeploying switchyard app results in OOME

Solution Verified - Updated

Environment

  • JBoss Fuse Service Works (FSW) 6.x

Issue

  • After several application redeploys, we experience a Metaspace or PermGen OOME. A heap dump shows leaked classloaders are retained in org.wildfly.extension.camel.service.ContextCreateHandlerRegistryService$ContextCreateHandlerRegistryImpls handlerMapping map.

Resolution

  • Upgrade to a Fuse on EAP release which contains the necessary fix:
    • 6.2.1 R5 (or later)
    • 6.3.0 R1 (or later)

See the JBoss Fuse Maintenance Schedule for a full list of available Fuse patches.

Root Cause

Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.