Originally posted by Vlad Rabkin:
Hi Max,
It works perfect with 15-17 Threads,
after that I get the "surprices"
Well, I am absolutelly sure: it is not my bug:
I have a simple architecture one ConnectionFactory object with synchronized getConnection() method, which creates a remote object.
Vlad.
I do not know what's your problem is but i swear, i saw topics here where people address exact same problem, you can search.
I only can tell that I did not test my assignment on two machines because i have only one at the moment but since i tested rmi on two machines in general i believe that everything will be as good as loopback on the same host (localhost).
And I am able to run as many clients as my computer can endure. I am getting this kind exception when my server is not listening.
I thought why it can be, and the only idea being: occurences of deadlocks in your clients.
To sort everything out you need to run with multiple local clients, multiple remote clients on the same machine and only then: multiple remote clients on other machine.
???