TCP connections used by RMI
843793Feb 5 2005 — edited Feb 8 2005hello,
I tried making a simple RMI application to check about the usage of TCP connections for the communication. The client and server are running on different hosts and my observations are:
a) when the client is invoking a method on the server at an interval of about 1 sec, then the same connection is used everytime for the communication.
b) when the client is invoking a method on the server at an interval of about 30 sec, then the a new TCP connection is made everytime for the communication !
The java.rmi.dgc.leaseValue is set to 100 minutes in both cases. Does this not mean that the connection should be maintained for 100 minutes even if there is no communication between the client and server ??