"java.lang.OutOfMemoryError: Direct buffer memory” exception is thrown by Netty component

Solution Unverified - Updated -


  • Problem occurs, after several hours of continuous send/receive messages to ActiveMQ artemins, at moderate rate, about 140 messages per second. Messages are read in timely matter. We don’t see any WARNs about paging in logs, before exception. We use mostly default settings for Artemins. max-size-bytes is set to 10 MB.

  • After this exception, existing connections are not closed. Already connected clients, no longer receive messages, and are not forced to reconnect. This is our primary concern. In “Messaging statistics” in WebConsole “Server: Standalone Server Monitor: Subsystems Subsystem: Messaging – ActiveMQ”, “Consumer Count” is 0 after exception. Clients that connect after exception, can read messages. Sending new messages also works.


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.0.7

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