Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in simulating rmi clients

 
ShankarS
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,
I have implemented a simple RMI server with a simple method. Then, simulated
clients using 15 threads calling getting the remore objet reference and calling
a method in the server. I tested in my system without any network(localhost).
It worked fine for 15 threads, when i started increasing the number of clients/threds,
some the threads started throwing exceptions (only some threads, not all).
The exception thrown was,
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: no further information

Please let me know, whether anyone is facing the same problem.
Is there any way/restruction for the rmi registry thats it can serve only a
specific number of connections. Or, the problem is in the OS level?
I am also attaching a small RMI application that tests this problem.
thanx in adavnce,
Shankar S
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!