简体   繁体   中英

Compression for ActiveMQ to ActiveMQ

I do have two ActiveMQ brokers connected and do forward messages from broker one to broker two automatically. This is done by following configuration:

<networkConnectors>
    <networkConnector name="linkToRemote" uri="static(tcp://172.19.63.3:61616)?jms.useCompression=true" staticBridge="true"> 
        <staticallyIncludedDestinations>
           <queue physicalName="xyz.queue"/>
        </staticallyIncludedDestinations> 
    </networkConnector>
</networkConnectors>

Everything except the compression is working fine. My messages are 180KB in size. I have seen that the traffic is not compressed at all. Is jms.useCompression=true not functional? Has someone any alternatives to compress the traffic between two brokers? What about ssh tunnels if compression in ActiveMQ this is not working? My ActiveMQ version is 5.14.13.

I am now using autossh and compression. This combination works great. Active MQ does not compress the messages well if we use many small messages as it does not share a common compression dictionary.

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