You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by bgordon <bb...@yahoo.com> on 2006/05/02 17:18:35 UTC

RuntimeController

the RuntimeController doesn't seem to stop my jmx scripts. I see that there is 
http://issues.apache.org/bugzilla/show_bug.cgi?id=35059
   
  Should that be fixed my my 2.1.1 version or do I need to download a newer one? Thanks, Bruce

Re: RuntimeController

Posted by sebb <se...@gmail.com>.
Each thread checks for the stop condition after each sampler, which is
allowed to finish.

If you want to try experimenting, use the Java Request Sampler and set
the time delay to a second or two.

S.
On 03/05/06, bgordon <bb...@yahoo.com> wrote:
> Ok, I have a threadGroup with a scheduler and a delay of 0 and a duration of 30. I am not seeing it stop after 30 seconds, or 5 minutes. When should it stop? Will it just knock existing http requests on the head and stop immediately? Will the current HTTP requests finish? Will each thread continue the current loop and then check to see if it should top after a pass through all the elements? In my test environment I have 200 threads and for each loop the thread group may take a while, so that could be a possible explanation. Thanks, Bruce
>
> sebb <se...@gmail.com> wrote:
>  On 02/05/06, bgordon wrote:
> > Ok (I have to admit you had me chuckling with your comment "I had lots of problems trying to get it to work... it did seem to work for me in some cases...".)
> >
> > I think my logic was wrong. If my ThreadGroup had a loop then the RuntimeController will only stop the elements nested within it. So using the Scheduler is preferred. In my case I want to
> > a. parameterize the duration from a property. Can I do that?
>
> I think so - try it.
>
> > b. follow your suggestion of setting a startup delay of 0, and a duration of 400 etc
> > I don't understand how to modify the Scheduler Configuration. Are the Start/Stop times required? In my case I don't care about the times-I want to run it ASAP, but with a delay. Do I want to parameterize the Start/end times or do I want to somehow leave them empty and simply set the duration and delay? If duration and Startup delay are set will the other fields be ignored?
>
> Yes, see the documentation ...
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Thread_Group
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: RuntimeController

Posted by bgordon <bb...@yahoo.com>.
Ok, I have a threadGroup with a scheduler and a delay of 0 and a duration of 30. I am not seeing it stop after 30 seconds, or 5 minutes. When should it stop? Will it just knock existing http requests on the head and stop immediately? Will the current HTTP requests finish? Will each thread continue the current loop and then check to see if it should top after a pass through all the elements? In my test environment I have 200 threads and for each loop the thread group may take a while, so that could be a possible explanation. Thanks, Bruce 
  
sebb <se...@gmail.com> wrote:
  On 02/05/06, bgordon wrote:
> Ok (I have to admit you had me chuckling with your comment "I had lots of problems trying to get it to work... it did seem to work for me in some cases...".)
>
> I think my logic was wrong. If my ThreadGroup had a loop then the RuntimeController will only stop the elements nested within it. So using the Scheduler is preferred. In my case I want to
> a. parameterize the duration from a property. Can I do that?

I think so - try it.

> b. follow your suggestion of setting a startup delay of 0, and a duration of 400 etc
> I don't understand how to modify the Scheduler Configuration. Are the Start/Stop times required? In my case I don't care about the times-I want to run it ASAP, but with a delay. Do I want to parameterize the Start/end times or do I want to somehow leave them empty and simply set the duration and delay? If duration and Startup delay are set will the other fields be ignored?

Yes, see the documentation ...

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


Re: RuntimeController

Posted by sebb <se...@gmail.com>.
On 02/05/06, bgordon <bb...@yahoo.com> wrote:
> Ok (I have to admit you had me chuckling with your comment "I had lots of problems trying to get it to work... it did seem to work for me in some cases...".)
>
>   I think my logic was wrong. If my ThreadGroup had a loop then the RuntimeController will only stop the elements nested within it. So using the Scheduler is preferred. In my case I want to
>   a. parameterize the duration from a property. Can I do that?

I think so - try it.

>   b. follow your suggestion of setting a startup delay of 0, and a duration of 400 etc
>   I don't understand how to modify the Scheduler Configuration. Are the Start/Stop times required? In my case I don't care about the times-I want to run it ASAP, but with a delay. Do I want to parameterize the Start/end times or do I want to somehow leave them empty and simply set the duration and delay? If duration and Startup delay are set will the other fields be ignored?

Yes, see the documentation ...

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

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: RuntimeController

Posted by bgordon <bb...@yahoo.com>.
Ok (I have to admit you had me chuckling with your comment "I had lots of problems trying to get it to work... it did seem to work for me in some cases...".) 
   
  I think my logic was wrong. If my ThreadGroup had a loop then the RuntimeController will only stop the elements nested within it. So using the Scheduler is preferred. In my case I want to 
  a. parameterize the duration from a property. Can I do that?
  b. follow your suggestion of setting a startup delay of 0, and a duration of 400 etc
   
  I don't understand how to modify the Scheduler Configuration. Are the Start/Stop times required? In my case I don't care about the times-I want to run it ASAP, but with a delay. Do I want to parameterize the Start/end times or do I want to somehow leave them empty and simply set the duration and delay? If duration and Startup delay are set will the other fields be ignored?
   
  Thanks for your help,
   
Bruce

sebb <se...@gmail.com> wrote:  On 02/05/06, bgordon wrote:
> I've downloaded and tried version jakarta-jmeter-2-1.20060430 and I still have the same error. I want to verify that I'm using RuntimeController properly. I have
> ThreadGroup "TransactionalRequestor"
> RuntimeController with Runtime (seconds) set to ${__P(runtimeControllerMaxSeconds,180)}
> RandomController
> ThroughputController A
> Http request 1
> Http request 2
> Http request 3
> ThroughputController B
> Http request 4
> Http request 5
> ...
> Should that stop the test after rutimeControllerMaxSeconds, assuming its defined?

Looks OK.

I had lots of problems trying to get it to work... it did seem to work
for me in some cases...

How about trying the thread group scheduler instead?

Set a startup delay of 0, and a duration of 400 etc

S.
> When will the RuntimeController step in and cancel things. If I have many children does it only check after a pass through the children, which could explain why I see a run time of 21 minutes even though my runtimeController should be stopping after 400 seconds.
>
> Thanks, Bruce
>
>
>
> sebb wrote:
> On 02/05/06, bgordon wrote:
> > the RuntimeController doesn't seem to stop my jmx scripts. I see that there is
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=35059
> >
> > Should that be fixed my my 2.1.1 version or do I need to download a newer one?
>
> IIRC, I've not made any fixes in that area since 2.1.1, but there are
> a lot of other fixes in the current nightly which might possibly have
> helped.
>
> All I can say, is try it and see ...
>
> Thanks, Bruce
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



Re: RuntimeController

Posted by sebb <se...@gmail.com>.
On 02/05/06, bgordon <bb...@yahoo.com> wrote:
> I've downloaded and tried version jakarta-jmeter-2-1.20060430   and I still have the same error. I want to verify that I'm using RuntimeController properly. I have
>  ThreadGroup "TransactionalRequestor"
>    RuntimeController with Runtime (seconds) set to ${__P(runtimeControllerMaxSeconds,180)}
>      RandomController
>         ThroughputController A
>           Http request 1
>           Http request 2
>           Http request 3
>         ThroughputController B
>           Http request 4
>           Http request 5
>         ...
>  Should that stop the test after rutimeControllerMaxSeconds, assuming its defined?

Looks OK.

I had lots of problems trying to get it to work... it did seem to work
for me in some cases...

How about trying the thread group scheduler instead?

Set a startup delay of 0, and a duration of 400 etc

S.
>  When will the RuntimeController step in and cancel things. If I have many children does it only check after a pass through the children, which could explain why I see a run time of 21 minutes even though my runtimeController should be stopping after 400 seconds.
>
>  Thanks, Bruce
>
>
>
> sebb <se...@gmail.com> wrote:
>  On 02/05/06, bgordon wrote:
> > the RuntimeController doesn't seem to stop my jmx scripts. I see that there is
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=35059
> >
> > Should that be fixed my my 2.1.1 version or do I need to download a newer one?
>
> IIRC, I've not made any fixes in that area since 2.1.1, but there are
> a lot of other fixes in the current nightly which might possibly have
> helped.
>
> All I can say, is try it and see ...
>
> Thanks, Bruce
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: RuntimeController

Posted by bgordon <bb...@yahoo.com>.
I've downloaded and tried version jakarta-jmeter-2-1.20060430   and I still have the same error. I want to verify that I'm using RuntimeController properly. I have
  ThreadGroup "TransactionalRequestor"
    RuntimeController with Runtime (seconds) set to ${__P(runtimeControllerMaxSeconds,180)}
      RandomController
         ThroughputController A
           Http request 1
           Http request 2
           Http request 3
         ThroughputController B
           Http request 4
           Http request 5
         ...
  Should that stop the test after rutimeControllerMaxSeconds, assuming its defined?
   
  When will the RuntimeController step in and cancel things. If I have many children does it only check after a pass through the children, which could explain why I see a run time of 21 minutes even though my runtimeController should be stopping after 400 seconds. 
   
  Thanks, Bruce
   
  

sebb <se...@gmail.com> wrote:
  On 02/05/06, bgordon wrote:
> the RuntimeController doesn't seem to stop my jmx scripts. I see that there is
> http://issues.apache.org/bugzilla/show_bug.cgi?id=35059
>
> Should that be fixed my my 2.1.1 version or do I need to download a newer one?

IIRC, I've not made any fixes in that area since 2.1.1, but there are
a lot of other fixes in the current nightly which might possibly have
helped.

All I can say, is try it and see ...

Thanks, Bruce
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



Re: RuntimeController

Posted by sebb <se...@gmail.com>.
On 02/05/06, bgordon <bb...@yahoo.com> wrote:
> the RuntimeController doesn't seem to stop my jmx scripts. I see that there is
> http://issues.apache.org/bugzilla/show_bug.cgi?id=35059
>
>  Should that be fixed my my 2.1.1 version or do I need to download a newer one?

IIRC, I've not made any fixes in that area since 2.1.1, but there are
a lot of other fixes in the current nightly which might possibly have
helped.

All I can say, is try it and see ...

Thanks, Bruce
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org