activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Reducing the size of messages
Date Fri, 18 Apr 2008 06:44:42 GMT

On 18 Apr 2008, at 00:23, tanshul22 wrote:

>
> I have been trying to reduce the overhead an activemq message carries.
>
> ActiveMQTextMessage {commandId = 0, responseRequired = false,  
> messageId =
> null, originalDestination = null, originalTransactionId = null,  
> producerId =
> null, destination = null, transactionId = null, expiration = 0,  
> timestamp =
> 0, arrival = 0, brokerInTime = 0, brokerOutTime = 0, correlationId =  
> null,
> replyTo = null, persistent = false, type = null, priority = 0,  
> groupID =
> null, groupSequence = 0, targetConsumerId = null, compressed =  
> false, userID
> = null, content = null, marshalledProperties = null, dataStructure =  
> null,
> redeliveryCounter = 0, size = 0, properties = null,  
> readOnlyProperties =
> false, readOnlyBody = false, droppable = false, text = Hello World}
>
> I wonder why does a message carry all these feilds due to which its  
> size
> increases even more than 10 times.
This fields are optimized on-the-wire - some values are even cached -  
we've spent along time optimizing messaging performance.
These properties are there either because ActiveMQ needs them or they  
are required by the JMS spec
>
>
> Is there a way to get rid of these overheads.
>
> Secondly, i am using jms.useCompression=true but still my messages  
> show a
> compression = false.
> Does anybody know why?

Do you check that property from the sender after you've sent it?
>
>
> Thanks,
> Anshul
> -- 
> View this message in context: http://www.nabble.com/Reducing-the-size-of-messages-tp16757781s2354p16757781.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



cheers,

Rob

http://open.iona.com/ -Enterprise Open Integration
http://rajdavies.blogspot.com/




Mime
View raw message