We should write a MockSocketFactory that simulates:
* latency
* bandwidth saturation
* backlogging
* random broken connections
* network splits
* etc.
:-)
Probably something that belongs in the remoting testsuite.
Also, a lookback device is usually multi-threaded.
A real NIC is not. TCP/IP just makes it seem like it is.
"bela@jboss.com" wrote:
Note that if you're processes are on the same machine, and you're using TCP to send messages, your NIC will *not* be used, so performance measurements will ignore the network and bypass it using TCP's loopback facility.
I suggest having the 2 processes on separate machines to really measure the throughput and/or message rate.
Okay, great. Just wanted to make sure you are aware of the (incorrect) performance gain using loopback. And as I can see, you are.
Thanks,