• Post Reply Bookmark Topic Watch Topic
  • New Topic

question about test  RSS feed

dennis hu
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys:
I also have this problem about test.
I test my application in a same machine,so
I spawn many threads to test my application.
On my client side I spwan 20 threads to book 20 different flights use different reference of of remote server and in each thread I spawn 20 threads again,means every fligh need to be booked 20 times,so there are 400 threas on my client side.But exception occured,there are follows:
java.rmi.ConnectionException Connection refused to host,nested exception:
java.rmi.ConnectionException Connection refused:connect
java.rmi.ConnectionException:Exception Creating Connection to host,nested exception:java.net.SocketException:Connect(Code:10055)
I think maybe the number of threads is too many,so
I only use one reference of remote server and spawn 50 threads to book different flights,but the same exception is still ocurred,and if only spawn 10 threads,it works well,I am so confused.

Anybody can help me,Thanks very much!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!