You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Yuval <yu...@gmail.com> on 2005/05/26 07:34:30 UTC

Number of running threads

Hi,
 I want to extend one of the listener to show and print the number of 
running threads. 
I need to create a global variable somewhere (NumOfRunningThreads) but I'm 
not sure where is the best place to crate it.
  Can someone please advise?
 Thanks,
 Y.

Re: Number of running threads

Posted by sebb <se...@gmail.com>.
It's definitely in CVS HEAD.

And I've just added a method to get the number of active threads per
thread group - see ConstantThroughputTimer for an example of the use
of both.

S.
On 5/29/05, Yuval <yu...@gmail.com> wrote:
> Hi Michael,
>  Thanks for you answer.
>  I using the 2.03 source and I don't have such method.
>  Which version of the source code do you have?
>  Thanks,
>  Yuval
> 
>  On 5/26/05, Michael Stover <ms...@apache.org> wrote:
> >
> > That variable already exists:
> > JMeterContextService.getNumberOfThreads()
> >
> > -Mike
> >
> > On Thu, 2005-05-26 at 08:34 +0300, Yuval wrote:
> > > Hi,
> > > I want to extend one of the listener to show and print the number of
> > > running threads.
> > > I need to create a global variable somewhere (NumOfRunningThreads) but
> > I'm
> > > not sure where is the best place to crate it.
> > > Can someone please advise?
> > > Thanks,
> > > Y.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> >
> >
> 
>

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


Re: Number of running threads

Posted by Yuval <yu...@gmail.com>.
Hi Michael,
 Thanks for you answer.
 I using the 2.03 source and I don't have such method.
 Which version of the source code do you have?
 Thanks,
 Yuval

 On 5/26/05, Michael Stover <ms...@apache.org> wrote: 
> 
> That variable already exists:
> JMeterContextService.getNumberOfThreads()
> 
> -Mike
> 
> On Thu, 2005-05-26 at 08:34 +0300, Yuval wrote:
> > Hi,
> > I want to extend one of the listener to show and print the number of
> > running threads.
> > I need to create a global variable somewhere (NumOfRunningThreads) but 
> I'm
> > not sure where is the best place to crate it.
> > Can someone please advise?
> > Thanks,
> > Y.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

Re: Number of running threads

Posted by Michael Stover <ms...@apache.org>.
That variable already exists:
JMeterContextService.getNumberOfThreads()

-Mike

On Thu, 2005-05-26 at 08:34 +0300, Yuval wrote:
> Hi,
>  I want to extend one of the listener to show and print the number of 
> running threads. 
> I need to create a global variable somewhere (NumOfRunningThreads) but I'm 
> not sure where is the best place to crate it.
>   Can someone please advise?
>  Thanks,
>  Y.


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