Overhead on RMI protocol
Posted on 2003-11-25
I'm using RMI as a way to invoke methods over a LAN. That's works fine, but when I measure the network traffic I can see a tremendous overhead on the networks packets.
For example: if I invoke a simple remote method like,
boolean run( )
I can see that 4 packets travel through the network, the invocation of run, the acknowlegdment, the boolean returned by run and the acknowlegdment. The total size of the TCP/IP packets is about 600 bytes.
This size is too much for the systems we are developing, so we are evaluating changing to sockets (I mean, implementing a specific protocol for our application).
My question is, there is a way to reduce the RMI overhead (some paremeters, some classes we can use) ?