HornetQ streaming big StreamMessages causes 'OutOfMemoryError: Java heap space'

Solution Unverified - Updated -

Issue

  • The Java heap dump shows the largest retention under a thread that with the same names as the thread associated with the OutOfMemoryError in the JBoss server.log.
  • Retention in org.jboss.netty.buffer.BigEndianHeapChannelBuffer byte array.
  • Java heap dump created by the JVM with -XX:+HeapDumpOnOutOfMemoryError option is significantly smaller than the max heap size (-Xmx).
  • Heap dump analysis shows the retention is a byte array.

Environment

  • JBoss Service Oriented Architecture Platform (SOA-P)

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.