I use RMI and I noticed this very, very slowly. A simple call takes ~ 8-10 seconds to get a response. This is not the method that I have been calling for so long. If I use RMI but point to a call to 127.0.0.1, it is very fast (the method that I call is not complicated in any case).
So ... what could be the reason? My downdraft is fast enough, the remote machine upstream fast enough ... and the remote machine is not too busy with other things.
Anything I could do wrong? Or something to pin it a little?
source share