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

Error on RMI

 
dennis hu
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys:
I am testing my app on one computer.At the client side,I used MultiThead to invoke th method getConnection{} in ConnectionFactoryImpl class.Every thread has a reference of DataServerImpl,but when the threads is excessed 200, occured these errors:
sun.rmi.server.UnicaseRef.invoke(UnicaseRef.java,complied.java);
suncertify.server.ConnectionFactoryImpl_Stub.getConnection(Unknow source);,ets.
Thanks!
 
Ying Ren
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I knew RMI had the limit of clients. Out of limits will have some problems. In this assignment, we are not required to worry about the number of clients.
Ying Ren
scjd2,scjp2
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow you got up to 200 connections. Most I always here is about 20-25 at most.
Good job.
Don't worry about this problem, there really sin't anything you can do, and the assessor knows the limitations.
Mark
 
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!