File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kapil More
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Dmitri Tikhanski
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic