JVM Metaspace is filled with CXF ProxyClassLoader classes causing performance degradation of the CXF JAX-RS producer under load

Solution Verified - Updated -

Issue

Using a CXF JAX-RS producer under load is causing the JVM Metaspace to fill with ProxyClassLoader classes.
Over time this degrades performance when using the CXF JAX-RS producer for remote calls since a new java.lang.reflect.Proxy instance is created internally by CXF for every invocation.

Environment

  • JBoss Fuse
    • 6.3
      • any roll-up patch < R11
    • 7.0
    • 7.1
    • 7.2
  • JBoss Enterprise Application Platform (EAP)
    • 7.1
    • 7.2
  • Camel
  • camel-cxf using CXF Proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content