简体   繁体   中英

How to enable Multiple buffer channel in HornetQ

I am working on a app which has a lot of asynchronous messages hosted by HornetQ 2.3.21. By some process my message size goes more than 2GB and the message starts failing with this message on the server:

HQ212017: error adding packet: java.lang.IllegalStateException: Maximum size of 2gb exceeded
   at org.jboss.netty.buffer.DynamicChannelBuffer.ensureWritableBytes(DynamicChannelBuffer.java:82) [netty-3.6.9.Final-redhat-1.jar:3.6.9.Final-redhat-1]

I want to enable multiple buffer channel for the app. Can someone please help me out with a way to achieve that?

I don't believe there is any way to enable "multiple buffer channel" in HornetQ. This looks like a bug in HornetQ. The HornetQ code-base is no longer maintained since its donation to the Apache ActiveMQ community 6 years ago. HornetQ is still open-source so you're free to fix any bugs you find and build your own release(s), but I recommend you move to ActiveMQ Artemis which is based on the donated HornetQ code-base.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM