activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <>
Subject Re: compressed activemq messages
Date Fri, 13 Mar 2015 21:25:10 GMT
The first time the message crosses a network link with useCompression=true,
the body of the message will be compressed.  It will stay compressed until
it is read (by a consumer, by browsing the queue on the broker, by an
embedded Camel route that examines the body, etc.), after which it will
stay uncompressed until it crosses another network link where

So if your producers send messages to the broker across a connection where
useCompression=true and you don't do anything with the message on the
broker, its body will be compressed for the entire time it's in the
broker's memory.  Headers, however, are always uncompressed.


On Fri, Mar 13, 2015 at 3:11 PM, Kevin Burton <> wrote:

> I’m confused about activemq message compression:
> useCompression
> > Enables the use of compression of the message bodies
> Is this just wire protocol compression or is this compression of the
> objects in memory?
> It would be interesting to have the messages (and headers) compressed in
> memory to minimize JVM heap usage within the broker.
> Kevin
> --
> Founder/CEO
> Location: *San Francisco, CA*
> blog:
> … or check out my Google+ profile
> <>
> <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message