[rabbitmq-discuss] limit number of messages buffered in memory in new persister
alex chen
chen650 at yahoo.com
Sat Mar 6 01:56:25 GMT 2010
Tsuraan,
> What client are you using? If it's the python amqplib, can you try
> putting this line:
> self.sock.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 0)
Thanks for the suggestion! We are using rabbitmq-c. I tried setting (TCP_NODELAY, 1) and the troughput increased from 20 msg/sec to 200 msg/sec. As Tony pointed out in the previous email it was indeed caused by nagling. it did not happen to tx_select but it happened to tx_commit.
Many thanks to everyone who helped on this thread! it is greatly appreciated!
-alex
More information about the rabbitmq-discuss
mailing list