This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI connection exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI connection exception" Watch "RMI connection exception" New topic
Author

RMI connection exception

Vincent Li
Greenhorn

Joined: Jan 12, 2007
Posts: 22
Hi,

While doing some intense thread testing, I generated the following exception with a multi-threaded client pounding on my server (only something like 60 threads):

java.rmi.ConnectException: Connection refused to host: 198.162.240.149; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
...

Is this "normal"? That is, is this just an artifact of my testing or is there something fundamentally I'm missing in my RMI handling? Like is the RMI server just plain run out of connections/thread pool and may be something I can set to a higher value?

Thanks!

-- Vince


Vince<br />SCJP(1.4), SCWCD(1.4), SCJD (5.0)
Vincent Li
Greenhorn

Joined: Jan 12, 2007
Posts: 22
OK, did a search and looks like this has been discussed before at:

java.rmi.onnectionException

and

More than 17 clients CRASH?!

Thanks!

Vince
 
 
subject: RMI connection exception
 
Similar Threads
java.rmi.ConnectException: Connection refused to host
RemoteException in B&S
RemoteException Occurred. What happen?
RMI Exception
java.rmi.ConnectException while system testing