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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.