title: Message Header Size for JMS producer in ActiveMq v5.10
body: <p>I was trying to use Message Size related stats<br />
  (Minimum message size, Maximum message size, Average message size, Total message size by using</p>
  <blockquote>
  <p><a href="http://activemq.apache.org/maven/5.10.0/apidocs/org/apache/activemq/broker/region/DestinationStatistics.html" rel="nofollow noreferrer">DestinationStatistics</a>.getMessages().getCount()</p>
  </blockquote>
  <p>) provided in ActiveMQ v5.10 and found that header size is 1028 bytes (send message of different sizes and size returned by API is 1028 bytes more). I am not able to understand why size is this.</p>
  <p>Is it prefixed? Is there anyway to see what constitute header.</p>
  <p>Thanks</p>
  <p><strong>EDIT:</strong><br />
  So basically producer is sending a text message of 1024 bytes (chars) using java code on a queue to broker which is received by consumer listening onto that queue. I am logging message sizes using the above said API and I found that message size reported is 2052 bytes and not 1024 bytes.</p>