Hi Frederic<div><br></div><div> Yes I&#39;ve tryed installing same jdk (sun, 1.6, 32 bit) on both 1 and 2 machines and the problem persists.</div><div> I serialize my messages (POJOs) through DataInput/DataOutput (I&#39;m using Writable from hadoop which delegates the serialization algo to the POJO itself and is done by calling  writeInt(), writeLong() etc). In all comm protocols I&#39;ve tryed this has been the faster approach.</div>
<div> My connections are persistent (keep aline is set to true) the channel is created once on client connection and then all the messages are sent through that channel.</div><div> The only way I can prevent the problem is by using plain old blocking Sockets, there the latency is minimal, but the throughput also plummets 10 fold (dropping from 40.000 to 5.000 on my mac). What I find curious is that Oio in netty is supposed to be built over the old sockets right? If i use Oio the latency still increases...</div>
<div><br></div><div>Regards</div><div>David</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 4:28 PM, Frederic Bregier <span dir="ltr">&lt;<a href="mailto:fredbregier@free.fr">fredbregier@free.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi David,<br>
So it is probably not related to a particular JDK.<br>
Do you have try to use (to be sure) same JDK on both side<br>
(or at least same big level like 1.6 and also same type of xxbit - 32 xor 64<br>
its -) ?<br>
I did not have any problem with Sun JDK until now (just to let you know).<br>
If you use POJO between clients and server, could it be related (32 vs<br>
64bit) ?<br>
<br>
Another idea:<br>
Do you always opened and closed the channel for every message<br>
or stay opened as long as you can ?<br>
But I&#39;m agree, even like that, it should not have a 100s of latency.<br>
<br>
At this point, I&#39;ve got no new idea...<br>
<br>
Regards,<br>
Frederic<br>
<br>
<br>
-----<br>
Hardware/Software Architect<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Ultra-low-latency-in-cluster-application-tp2381448p2384634.html" target="_blank">http://n2.nabble.com/Ultra-low-latency-in-cluster-application-tp2381448p2384634.html</a><br>

</font><div><div></div><div class="Wj3C7c">Sent from the Netty User Group mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</div></div></blockquote></div><br></div>