JBoss - Java heap retention in org.jboss.messaging.core.impl.MessagingQueue or other messaging destinations

Solution Verified - Updated -

Issue

  • "java.lang.OutOfMemoryError: Java heap space" errors are received because the heap is consumed by org.jboss.messaging.core.impl.MessagingQueue or by messages sitting in our queues or topics or the deliveries map of a ServerSessionEndpoint with JBoss Messaging. How could we address this?
  • There are many instances of SimpleMessageReference accumulating in MessagingQueue's messageRefs LinkedList.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • JBoss Messaging (JMS)
    • HornetQ

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