Re: how to improve TCP thoughput in Java app



Shin wrote:

Could anyone share their stories of improving TCP thoughput in Java
apps? Suppose in my app, small sized message has to be communicated
between different jvms.

Are you sure you mean throughput ? It sounds to me more as if latency would be
the big issue in this case.

Anyway, for throughput I think the biggest influence is whether you have
carefully considered how and where you use buffering (and other strategies for
minimising the number of small read()s or write()s).

For latency the picture is more complicated. Some issues:
Do you have to open a new connection for each message ?
If not then how long to you hold connections "idle" before dropping them ?
Is the delay caused by "Nagle's Algorithm" (see Google) a factor ?
How far apart (in network terms) are the servers ?

-- chris



.



Relevant Pages

  • Re: how to improve TCP thoughput in Java app
    ... small sized message has to be communicated ... between different jvms. ... for throughput I think the biggest influence is whether you have ...
    (comp.lang.java.programmer)
  • Re: Chris Pirillo: Vista vs Mac OS X Leopard.
    ... applications will also benefit from the increased throughput." ... If these are merely 32-bit drivers made compatible with 64-bit address ... released for OS 9 and it appears to support Cocoa features like Services. ... *for apps which could actually benefit from 64-bit*. ...
    (comp.sys.mac.advocacy)