[rabbitmq-discuss] Maximum Frame Setting Not Working

Emile Joubert emile at rabbitmq.com
Wed Mar 2 10:45:44 GMT 2011

Hi Rom,

On 02/03/11 02:14, Rom wrote:
> Hi Emile,
> Thank you for the clarification. I did see this error in the log file.
> I'm exploring rabbitmq to be our messaging platform that handles heavy
> and very light payloads. There might be a node that will be dedicated
> to processing mobile data which is very light and so I was thinking
> that it might be a good idea to reduce the default frame size. Just a
> thought.

The setRequestedFrameMax() method negotiates the *maximum* frame size, 
not the default. AMQP peers may exchange tiny frames containing tiny 
payloads, even at the default framemax of 128Kb.

Setting the framemax to the lowest allowed value (4Kb) will reduce 
throughput if this causes fragmentation for a significant proportion of 
messages. Latency might be slightly better though. Benchmarking is 

> Seems like the way to achieve that customized default behavior on the
> frame size is to make changes to the rabbitmq.config file but I'm not
> well familiar with the erl style configuration and the available
> properties. Do you know of any references I could take a look at?

There are no broker config variables that control frame size. AMQP is 
already a very slim protocol. You don't need any further configuration 
to take advantage of this!



More information about the rabbitmq-discuss mailing list