You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by uzfarid <fa...@yahoo.com> on 2009/02/18 17:14:13 UTC
Urgent: How to change heap memory in slave machines?
Hi,
How it is possible to change heap memory size in slave machines?
i couldnt find anything abt heap memory in jmeter-server.bat
Thanks.
Br,
Farid
--
View this message in context: http://www.nabble.com/Urgent%3A-How-to-change-heap-memory-in-slave-machines--tp22082149p22082149.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Urgent: How to change heap memory in slave machines?
Posted by sebb <se...@gmail.com>.
On 18/02/2009, uzfarid <fa...@yahoo.com> wrote:
>
> Hi,
>
> How it is possible to change heap memory size in slave machines?
Yes.
> i couldnt find anything abt heap memory in jmeter-server.bat
Just copy the appropriate settings from the client script.
> Thanks.
>
> Br,
>
> Farid
>
> --
> View this message in context: http://www.nabble.com/Urgent%3A-How-to-change-heap-memory-in-slave-machines--tp22082149p22082149.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Setting number of threads via property not possible ?
Posted by Noel O'Brien <no...@newbay.com>.
On Monday 23 February 2009 07:48:51 Hiro Protagonist wrote:
> Hi sebb,
>
> You are correct, I meant to say 'thread groups' rather than threads. I
> managed to set the property, and pass it to the number of users field in
> the 2nd thread group - however, it only picks up the value every second
> time I execute the test plan.
> This has probably to do with the fact that I don't start the second
> thread group *after* the first one (they start simultaneously).
> When you say starting them consecutively, do you mean specifying a
> certain time at which the second thread group starts, using the
> scheduling mechanism ? Specifying a time is the only way I could think
> of controlling the startup behaviour of the thread groups...
> Please let me know if there is any other way.
In the "Test Plan" element, there's a checkbox for "Run Thread Groups
consecutively"
Regards,
Noel
> Thanks for your help,
> hiro
>
> On Sun, 2009-02-22 at 22:31 +0000, sebb wrote:
> > On 22/02/2009, Hiro Protagonist <hi...@googlemail.com> wrote:
> > > Hi all,
> > >
> > > I tried to dynamically set the number of users for the second thread
> > > in my test plan (based on how many results from a query in the first
> > > thread I find in the first) by giving ${__property(NUMBER_OF_CODES)}
> > > which seems to set the property value correctly
> >
> > The function __property() does not set a property.
> >
> > Did you mean _setProperty()?
> >
> > > - I can see the right number
> > > appear when using the debug sampler - and I can use this anywhere in
> > > the first thread, but when I try to specify the number of users in the
> > > second thread (in the "Number of Threads (users):" field) the thread
> > > doesn't get started !
> >
> > I assume you mean you have two thread *groups* and you are trying to
> > use the result of running the first thread group to control the number
> > of threads in the second group.
> >
> > Is that correct?
> >
> > > Can this be done ? If so, how ?
> >
> > Works fine for me.
> >
> > Of course, you have to set the thread groups to run consecutively so
> > that the first group completes before the second one starts.
> >
> > > Thanks,
> > > hiro
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
> ---------------------------------------------------------------------
> 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: Setting number of threads via property not possible ?
Posted by Hiro Protagonist <hi...@googlemail.com>.
Hi sebb,
You are correct, I meant to say 'thread groups' rather than threads. I
managed to set the property, and pass it to the number of users field in
the 2nd thread group - however, it only picks up the value every second
time I execute the test plan.
This has probably to do with the fact that I don't start the second
thread group *after* the first one (they start simultaneously).
When you say starting them consecutively, do you mean specifying a
certain time at which the second thread group starts, using the
scheduling mechanism ? Specifying a time is the only way I could think
of controlling the startup behaviour of the thread groups...
Please let me know if there is any other way.
Thanks for your help,
hiro
On Sun, 2009-02-22 at 22:31 +0000, sebb wrote:
> On 22/02/2009, Hiro Protagonist <hi...@googlemail.com> wrote:
> > Hi all,
> >
> > I tried to dynamically set the number of users for the second thread in
> > my test plan (based on how many results from a query in the first thread
> > I find in the first) by giving ${__property(NUMBER_OF_CODES)} which
> > seems to set the property value correctly
>
> The function __property() does not set a property.
>
> Did you mean _setProperty()?
>
> > - I can see the right number
> > appear when using the debug sampler - and I can use this anywhere in the
> > first thread, but when I try to specify the number of users in the
> > second thread (in the "Number of Threads (users):" field) the thread
> > doesn't get started !
>
> I assume you mean you have two thread *groups* and you are trying to
> use the result of running the first thread group to control the number
> of threads in the second group.
>
> Is that correct?
>
> > Can this be done ? If so, how ?
>
> Works fine for me.
>
> Of course, you have to set the thread groups to run consecutively so
> that the first group completes before the second one starts.
>
> > Thanks,
> > hiro
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Setting number of threads via property not possible ?
Posted by sebb <se...@gmail.com>.
On 22/02/2009, Hiro Protagonist <hi...@googlemail.com> wrote:
> Hi all,
>
> I tried to dynamically set the number of users for the second thread in
> my test plan (based on how many results from a query in the first thread
> I find in the first) by giving ${__property(NUMBER_OF_CODES)} which
> seems to set the property value correctly
The function __property() does not set a property.
Did you mean _setProperty()?
> - I can see the right number
> appear when using the debug sampler - and I can use this anywhere in the
> first thread, but when I try to specify the number of users in the
> second thread (in the "Number of Threads (users):" field) the thread
> doesn't get started !
I assume you mean you have two thread *groups* and you are trying to
use the result of running the first thread group to control the number
of threads in the second group.
Is that correct?
> Can this be done ? If so, how ?
Works fine for me.
Of course, you have to set the thread groups to run consecutively so
that the first group completes before the second one starts.
> Thanks,
> hiro
>
>
> ---------------------------------------------------------------------
> 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
Setting number of threads via property not possible ?
Posted by Hiro Protagonist <hi...@googlemail.com>.
Hi all,
I tried to dynamically set the number of users for the second thread in
my test plan (based on how many results from a query in the first thread
I find in the first) by giving ${__property(NUMBER_OF_CODES)} which
seems to set the property value correctly - I can see the right number
appear when using the debug sampler - and I can use this anywhere in the
first thread, but when I try to specify the number of users in the
second thread (in the "Number of Threads (users):" field) the thread
doesn't get started !
Can this be done ? If so, how ?
Thanks,
hiro
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Urgent: How to change heap memory in slave machines?
Posted by sebb <se...@gmail.com>.
Yes, and use %HEAP% in the java command-line
On 21/02/2009, uzfarid <fa...@yahoo.com> wrote:
>
>
> Hi,
>
> Do you mean to copy set HEAP=-Xms1220m -Xmx1220m into jmeter-server.bat ?
>
> Br,
>
> Farid
>
>
> uzfarid wrote:
> >
> > Hi,
> >
> > How it is possible to change heap memory size in slave machines?
> >
> > i couldnt find anything abt heap memory in jmeter-server.bat
> >
> > Thanks.
> >
> > Br,
> >
> > Farid
> >
>
> --
>
> View this message in context: http://www.nabble.com/Urgent%3A-How-to-change-heap-memory-in-slave-machines--tp22082149p22137334.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Urgent: How to change heap memory in slave machines?
Posted by uzfarid <fa...@yahoo.com>.
Hi,
Do you mean to copy set HEAP=-Xms1220m -Xmx1220m into jmeter-server.bat ?
Br,
Farid
uzfarid wrote:
>
> Hi,
>
> How it is possible to change heap memory size in slave machines?
>
> i couldnt find anything abt heap memory in jmeter-server.bat
>
> Thanks.
>
> Br,
>
> Farid
>
--
View this message in context: http://www.nabble.com/Urgent%3A-How-to-change-heap-memory-in-slave-machines--tp22082149p22137334.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org