[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Message Chunking

ataylor do-not-reply at jboss.com
Thu Jul 31 03:55:44 EDT 2008


Ive created a new Branch with the new Message Chunking code rolled in to Tim's new Remoting code. http://anonsvn.jboss.org/repos/messaging/branches/Branch_Message_Chunking_new/.

If you look at RemotingConnectionImpl/RemotingHandlerImpl you'll see a new class PacketAssembler. Basically this assembles/disassembles the packets into smaller buffers. Each buffer is written to the session in the normal fashion.

There are 2 new configuration attributes 'remoting-initial-packet-fragment-size', which is the size to make the initial packet sent and 'remoting-packet-fragment-size' for any subsequent packets. setting the latter to 0 will also revert back to using 1 buffer.

There has been a drop in our performance figures because of this, so I'm currently investigating this. I know for large messages that encoding is actually quicker, i think because we don't need to auto expand buffers, but i havent got as far as checking the decoding.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167816#4167816

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167816



More information about the jboss-dev-forums mailing list