You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Atif Ghaffar <ag...@developer.ch> on 2002/10/16 17:35:28 UTC

Distributed testing

Hello,
I have just joined this list.
Kudos for the cool software.


I have toyed with jmeter for a couple of days to understand how it works
and to evaluate if we can use it for testing some of our apps.

Few questions:

1) Can I distribute testing load among multiple machines?
   For example I want to use 50 threads, loop for 1000 times 
   and divide this load among five machines.


2) For each thread, I want to simulate a unique user.
   This user will have his parameters appended to the url.
   Scenario:
   User bob logs in the application
   User bob creates a file, edits a file, deletes a file etc.

   Other threads will be doing the same as other users.
   Has anyone tried something similar?
   
   Should that be one thread group with 1 thread for a user?

3) Remote execution without the GUI:  
   Can I start/stop tests on different servers without 
   using the GUI? i-e: is there a CLI version to do that?
   If not: I can live with ssh hostname "command  to start/stop jmeter"


Thanks in advance for any comments.



best regards,

-- 
Atif Ghaffar






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Distributed testing

Posted by Atif Ghaffar <ag...@developer.ch>.

Quoting Michal Kostrzewa <M....@pentacomp.com.pl>:

> Hello Atif,
> >
> > Yes, I have seen that I can start a test on one or more remote
> machines.
> > What I was looking to find out was wether I can distribute the test
> load
> > among machines... (I want five machines to run the test but send
> only
> > 1000 requestst in total to the web app)
> > I guess the answer is "No" or "Not at the moment".
> 
> Perhaps I don't understant fully what do you want... If you want to
> send 1000 
> requests in total, but deploy it on 5 machines, so scenarios on test
> machines 
> should send 200 requests... And you can run them from GUI
> controller.... Of 
> course you have to manually set 200 re	quests, do you want it to be 
> automagically?


Yes, It would be great if it can be automated (load balanced).
Perhaps tester 1 should send 300 requests while tester 2 should only
send 100 requests depending on the load of the machine. 
That might require jmeter servers running on these hosts to monitor the
load and communicate with each other. 
A /. joke.
Can we make a beowolf cluster of these?



> You've just said the solution (remote cron) You may want to browse
> bugzilla's 
> databases for enhancements and see if somebody already did such
> proposal. If 
> not, you may want to add it by yourself.

Thanks, I'll browse the bugzilla and see if someone has written/proposed
such a scheduler. 

best regards.


-- 
Atif Ghaffar





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Distributed testing

Posted by Michal Kostrzewa <M....@pentacomp.com.pl>.
Hello Atif,
>
> Yes, I have seen that I can start a test on one or more remote machines.
> What I was looking to find out was wether I can distribute the test load
> among machines... (I want five machines to run the test but send only
> 1000 requestst in total to the web app)
> I guess the answer is "No" or "Not at the moment".

Perhaps I don't understant fully what do you want... If you want to send 1000 
requests in total, but deploy it on 5 machines, so scenarios on test machines 
should send 200 requests... And you can run them from GUI controller.... Of 
course you have to manually set 200 re	quests, do you want it to be 
automagically?


> > To control remote jmeters you must have one controller jmeter run in
> > GUI mode.
>
> You meant "No" :) .

Yes, I meant "no" :-) 

> Example:
> I want to run test_11002 on remote_host_32 at 00:30 this morning.
> Obviously "at" "cron" and running localy without GUI comes to mind.
> Was wondering if this functionality was already built-in. It is not so
> much of a hassle when running on one tester machine but a bit more pain
>  when distributing the test on multiple machines and scheduling it to
> run later.

You've just said the solution (remote cron) You may want to browse bugzilla's 
databases for enhancements and see if somebody already did such proposal. If 
not, you may want to add it by yourself.

best regards 
Michal Kostrzewa


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Distributed testing

Posted by Atif Ghaffar <ag...@developer.ch>.
Hi Michal
thanks for your answers... please read comments below.


Quoting Michal Kostrzewa <M....@pentacomp.com.pl>:

> > 1) Can I distribute testing load among multiple machines?
> >    For example I want to use 50 threads, loop for 1000 times
> >    and divide this load among five machines.
> 
> Yes, please read
> http://jakarta.apache.org/jmeter/usermanual/remote-test.html
Yes, I have seen that I can start a test on one or more remote machines.
What I was looking to find out was wether I can distribute the test load
among machines... (I want five machines to run the test but send only
1000 requestst in total to the web app)
I guess the answer is "No" or "Not at the moment".


> You should create one thread group having as many threads as many
> users you 
> like. Personalizing scenarios for each user is described in
> 
>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#User_Parameters

Thanks I will play with it a bit more.

> >
> > 3) Remote execution without the GUI:
> >    Can I start/stop tests on different servers without
> >    using the GUI? i-e: is there a CLI version to do that?
> >    If not: I can live with ssh hostname "command  to start/stop
> jmeter"
> >
> 
> To control remote jmeters you must have one controller jmeter run in
> GUI mode.

You meant "No" :) .
How about when one wants to run scheduled test?

Example: 
I want to run test_11002 on remote_host_32 at 00:30 this morning.
Obviously "at" "cron" and running localy without GUI comes to mind.
Was wondering if this functionality was already built-in. It is not so
much of a hassle when running on one tester machine but a bit more pain
 when distributing the test on multiple machines and scheduling it to
run later.


thanks again for the answers and 
best regards,

--
Atif


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Distributed testing

Posted by Michal Kostrzewa <M....@pentacomp.com.pl>.
> 1) Can I distribute testing load among multiple machines?
>    For example I want to use 50 threads, loop for 1000 times
>    and divide this load among five machines.

Yes, please read http://jakarta.apache.org/jmeter/usermanual/remote-test.html

> 2) For each thread, I want to simulate a unique user.
>    This user will have his parameters appended to the url.
>    Scenario:
>    User bob logs in the application
>    User bob creates a file, edits a file, deletes a file etc.
>
>    Other threads will be doing the same as other users.
>    Has anyone tried something similar?
>
>    Should that be one thread group with 1 thread for a user?

You should create one thread group having as many threads as many users you 
like. Personalizing scenarios for each user is described in

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#User_Parameters

>
> 3) Remote execution without the GUI:
>    Can I start/stop tests on different servers without
>    using the GUI? i-e: is there a CLI version to do that?
>    If not: I can live with ssh hostname "command  to start/stop jmeter"
>

To control remote jmeters you must have one controller jmeter run in GUI mode.

regards
Michal Kostrzewa


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>