Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load testing and RMI ConnectionException

 
Anna Hays
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am load testing my business layer via command lines and threads. I keep getting ConnectionException when there are more than 15 threads. The more threads, the higher the chance of getting this exception. I think handling 15 threads or less is pretty lousy. Can some people shed some lights how to fix this? Could this be my network etc?? This is for remote clients. When I test on local clients, it went like a charm for 2000 threads and I didn't test more than that.
Here is the output. I am on a LAN. It seems the program gets my LAN IP even tho I put in localhost / 127.0.0.1 I don't really understand these things much ;(

Thank you very much!
 
Anna Hays
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, if any one is interested.
This thread could be the answer. I know, I should search before post...
 
Anna Hays
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Thead.sleep() didn't help at all. Am I doing this right??? This is the code for getting the remote db object.

This just give a pause when I typed the command. Then everything runs like it hasn't got a Thread.sleep().
I am using JSDK 1.4.
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anna,
This might help:
Topic: All of URLy Bird 1.1.3 about Junit test
 
Anna Hays
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you George! It helps big time when I run the test on Windows XP. When I run the test on Windows 2000 server, it seems to handle up to 100 threads without putting the current thread to sleep a little... Wonder if anyone has any thoughts whether we should take this issue into consideration, cos it depends on the OS. But I know it is better to be safe than sorry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic