Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

load testing and RMI ConnectionException

 
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.
 
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.
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic