File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes problem in simulating rmi clients Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "problem in simulating rmi clients " Watch "problem in simulating rmi clients " New topic

problem in simulating rmi clients


Joined: Jul 29, 2001
Posts: 25
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:; nested exception is: 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?
thanx in adavnce,
Shankar S

I agree. Here's the link:
subject: problem in simulating rmi clients
jQuery in Action, 3rd edition