• 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

How to Simulate (parameterise)10 or 50 concurrent user for the JMeter

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everybody,
I need some help using the JMeter,i want to simulate JMeter for 10/50 users with each user logging with unique userid & Password for testing a application
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of application?
If a web application, you can use HttpClient to emulate a user load.
Bill
 
Kapil More
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanx for the reply.
We are using Web Based Application for Performance Testing ,so for that we want to simulate the User Load.
I had gone through the features of the JMeter but i didn't find anything related HTTP Client so can u help me about this issue.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I should have been more specific - HttpClient is a toolkit of classes that lets you simulate any HTTP connection. See http://jakarta.apache.org/commons/httpclient/ for more information and the free code. Here is a short chunk of code to give you an idea of how simple it is.


The whole load creating class was of course much more complex - each Thread logged into my servlet and ran through a test of 43 questions, generating responses according to a script in XML. As many as 50 simulated users (Threads) were created.
In order to really stress the system, it was set to simulate sending an answer and getting the next question every 5.0 seconds with random variation of +-0.5 seconds.
In the stiffest test, I was running 2 simulators on two different computers
to give a load of 100 users at the same time, I saw a lot of ethernet collisions and some of the users got dropped due to not allowing retrys.

Another popular tool is HttpUnit -
see this sourceforge page.
Bill
[ September 10, 2004: Message edited by: William Brogden ]
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to use JMeter Timers for this.

1. If you want constant load of 10/50 requests per second - Constant Throughput Timer
2. If you want 10/50 users hitting the sever at the same moment - Synchronizing Timer
reply
    Bookmark Topic Watch Topic
  • New Topic