Camel route using "mock:" endpoints uses a lot of JVM heap

Solution Verified - Updated -

Issue

A Camel application uses mock: endpoints for testing:

...
from("direct:testdata")
  .to("mock:test_endpoint");

It is observed that, under load, a large and increasing amount of JVM heap is used. Inspection of the heap reveals large numbers of org.apache.camel.component.mock.MockEndpoint.XXX instances.

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Camel 2.x

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