• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

load testing and RMI ConnectionException

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic