Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java in a high latency network

 
xeon costa
Greenhorn
Posts: 15
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a program that transfer files between the hosts. My problem is that the network between these hosts have a high latency (> 1sec), and sometimes my programs launch a error of "java.net.NoRouteToHostException: No route to host; ".

I think this problem happens because of the latency. There is a way to configure the JVM for networks with high latency so that the time to try to connect to a remote host is longer?

Thanks,
 
Ron McLeod
Bartender
Pie
Posts: 921
58
Android Eclipse IDE Java Linux MySQL Database Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds more like a routing issue rather than a latency issue. It would be good to run packet sniffer such as Wireshark and see what is actually happening (or not) on the wire.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic