Want to diagnose a bottleneck that occurs when my client is talking to a server on the other side of the world. I would like to start the server on my local machine and simulate latency. Is there a way that I can insert a short stream during all remote calls? I'm not sure which remote call is the bottleneck, so I need to defer all of them.
The second attempt to clarify:. I do not want to copy thread inserts into each individual remote method, because there are many, many remote methods. I am trying to find a way to introduce sleep into the RMI subsystem, so all RMI calls will be deferred.
source share