Re: how to improve TCP thoughput in Java app
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 5 Apr 2006 11:48:15 +0100
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
.
- Follow-Ups:
- Re: how to improve TCP thoughput in Java app
- From: Shin
- Re: how to improve TCP thoughput in Java app
- From: Remon van Vliet
- Re: how to improve TCP thoughput in Java app
- References:
- how to improve TCP thoughput in Java app
- From: Shin
- how to improve TCP thoughput in Java app
- Prev by Date: Re: Dumb java code award
- Next by Date: Re: openfont
- Previous by thread: Re: how to improve TCP thoughput in Java app
- Next by thread: Re: how to improve TCP thoughput in Java app
- Index(es):
Relevant Pages
|