Here is a code example:<br><br> final AMQP.BasicProperties props = MessageProperties.BASIC;<br> final byte[] body = new byte[64000];<br><br> long startTime = System.nanoTime();<br>
for (int i = 0; i < MESSAGE_COUNT; i++) {<br> try {<br> channel.basicPublish("",queueName, false, false, props, body);<br> } catch (Exception cause) {<br> cause.printStackTrace();<br>
return null;<br> }<br> }<br> long endTime = System.nanoTime();<br><br><div class="gmail_quote">On Mon, Feb 1, 2010 at 4:33 PM, Matthew Sackman <span dir="ltr"><<a href="mailto:matthew@lshift.net">matthew@lshift.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks for forwarding that to the list, Holger.<br>
<br>
Vladimir, we have sometimes seen very strange things with Windows and<br>
some firewall products doing deep inspection on traffic that's going to<br>
the internet at large - XML based content often triggers this. Could you<br>
make sure all firewalls are off, or try using SSL?<br>
<br>
You don't state which client you're using. If you can cut the code down<br>
to a small example which demonstrates this problem we can certainly take<br>
a look at that.<br>
<br>
We know of several clients who are publishing to Rabbit at high speed<br>
over a WAN - there is nothing inherently tricky here.<br>
<div class="im"><br>
On Mon, Feb 01, 2010 at 02:23:37PM +0100, Holger Hoffstaette wrote:<br>
> Also we have created a simple client-server application which simply<br>
> writes data to stream and measure performance: we have seen throughput<br>
> is about 350 kB/s (it is about 40% of network usage, what is a pretty<br>
> good for us, because we can use three or four connections on this<br>
> network to arrive at least 90% of network usage). We don't understand<br>
> why RabbitMQ have poor performance using single TCP connection on our case.<br>
<br>
</div>I have a suspicion this is a firewall issue - with your simple<br>
streaming, do I assume the data is all nulls, or random? And with your<br>
Rabbit tests, is the data XML?<br>
<font color="#888888"><br>
Matthew<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Vladimir Balandin<br>Grid Dynamics<br>