Apache Qpid : Tune Broker and Client Memory Usage
This page last changed on Oct 16, 2009 by ritchiem.
Tuning the broker for your message size.The default buffer size used per message on the broker and client is 32kb if your message is significantly smaller you can improve your memory usage by lowering this value. What size to useWhen selecting what size of buffer to include space for any JMS Headers that may be defined (key and value). You should also include 200 bytes for the AMQP routing details, if you have very long queue or topic names you may wish to increase this value further. How to change the buffer sizesBroker BuffersIn your broker configuration file the socketSend/ReceiveBuffer value of 32768 is where the buffer size is specified. <connector> ... <socketReceiveBuffer>32768</socketReceiveBuffer> <socketSendBuffer>32768</socketSendBuffer> </connector> Modifying these will adjust the size of the ByteBuffers used in conjunction with the socket. Client BuffersAdjusting the client buffers can also assist your client heap management if you are prefetching a large number of messages. amqj.sendBufferSize amqj.receiveBufferSize These need to be set prior to making the initial connection. |
![]() |
Document generated by Confluence on May 26, 2010 10:33 |