Access JMeter functions and properties from JavaSampler

2009-09-30 Thread Tech Newbie
Can I access JMeter functions and properties from my own JavaSampler?  For example, how do I get the thread group name and thread number so I can print this out?  Also, can I define properties using the -J command line option and retrieve that value from my JavaSampler? Thanks in advance.

Re: Not able to run the script for more than 200 users

2009-09-30 Thread sebb
On 30/09/2009, Jakub Białek ragno...@gmail.com wrote: set Xmx and Xms to -Xmx768m -Xms768m Good advice. Note that the default setting for JMeter 2.3.4 is actually -Xms512m -Xmx512m Setting it lower is almost bound to cause memory problems - why did you do that? 2009/9/30 nanduri

Re: Removing Ajax.do pages from Test Plan

2009-09-30 Thread sebb
On 30/09/2009, vijayakumar bcvijayaku...@altechindia.com wrote: Dear All , I have recorded my test plan which contains many .jsp and .do files [ Java Application ] . It has some ajax.do files also , While executing this test plans with 300 concurrent users , these ajax files are giving

How can i update OLD Scripts??

2009-09-30 Thread gpub
Hi all I had already recorded the Scripts but on old environment with 10-12 scenarios. now i have got new Instance and will now need to work on those scripts again with same scenarios. What would be my step ??? Regards Gp -- View this message in context:

Re: How can i update OLD Scripts??

2009-09-30 Thread sebb
On 30/09/2009, gpub affablepr...@gmail.com wrote: Hi all I had already recorded the Scripts but on old environment with 10-12 scenarios. now i have got new Instance and will now need to work on those scripts again with same scenarios. What would be my step ??? Most test plans can

Re: How can i update OLD Scripts??

2009-09-30 Thread gpub
Sebb, i am planing on JMeter 2.3.4 but but in future scope Currently i have to check that my OLD SCRIPTS can work on new instance... for e.g I performed load say instance X, ran scripts and execute them now there may be changes in that Web Pages and more over Instance now Y, will i be able

Re: Not able to run the script for more than 200 users

2009-09-30 Thread Mark Rotteveel
sebb wrote: On 30/09/2009, Jakub Białek ragno...@gmail.com wrote: set Xmx and Xms to -Xmx768m -Xms768m Good advice. Note that the default setting for JMeter 2.3.4 is actually -Xms512m -Xmx512m Setting it lower is almost bound to cause memory problems - why did you do that? Is there

Re: Not able to run the script for more than 200 users

2009-09-30 Thread Jakub Białek
The main reason is performance, because if you set this parameters to the same value it keeps the JVM from allocating and de-allocating memory and reduce the memory allocation overhead, from the begining JVM know how much memory should use. Of course you have to know how many memory application

Re: Removing Ajax.do pages from Test Plan

2009-09-30 Thread vijayakumar
Hi Sebb , i ) The ' Actual Time taken ' - what I meant is The Time taken to complete the Test Plan execution without removing the Ajax.do pages from my test plan . It tooks 30 Mins to complete my test plan before removing the ajax.do pages from my test plan . But while running the same

Re: Removing Ajax.do pages from Test Plan

2009-09-30 Thread sebb
On 30/09/2009, vijayakumar bcvijayaku...@altechindia.com wrote: Hi Sebb , i ) The ' Actual Time taken ' - what I meant is The Time taken to complete the Test Plan execution without removing the Ajax.do pages from my test plan . It tooks 30 Mins to complete my test plan before removing

Re: Not able to run the script for more than 200 users

2009-09-30 Thread Mark Rotteveel
Jakub Białek wrote: The main reason is performance, because if you set this parameters to the same value it keeps the JVM from allocating and de-allocating memory and reduce the memory allocation overhead, from the begining JVM know how much memory should use. Of course you have to know how many

Re: Not able to run the script for more than 200 users

2009-09-30 Thread Jakub Białek
According the http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html: Setting -Xms and -Xmx to the same value increases predictability by removing the most important sizing decision from the virtual machine. However, the virtual machine is then unable to compensate if you make a poor

Re: Removing Ajax.do pages from Test Plan

2009-09-30 Thread vijayakumar
Okay ! Sebb , Thanks for your Help . I shall do the needful . With warm regards, Vijayakumar.C - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Wednesday, September 30, 2009 6:06 PM Subject: Re: Removing Ajax.do pages from

Re: Not able to run the script for more than 200 users

2009-09-30 Thread Jakub Białek
Another reason from Java SE 6 Performance White Paper: Java SE 6 supports large page heaps on x86 and amd64 platforms. Large page heaps help the Operating System avoid costly Translation-Lookaside Buffer (TLB) misses to enable memory-intensive applications perform better (a single TLB entry can

Re: using variable in a RegExp extractor

2009-09-30 Thread cmrz
I can't get the debug working right. Enabling debug does not seem to do anything and I am not sure how to get this log file. Can you let me know how to do this and I will move forward? thanks! -- View this message in context:

Re: Not able to run the script for more than 200 users

2009-09-30 Thread Deepak Shetty
One of the reasons Xms=Xmx is a rule of thumb is that it cuts out a couple of variables(and makes it easier to tune the other variables). In most server side applications , you have a good idea about the total memory used by other applications(very few of them) , the amount available to java etc ,

Re: Access JMeter functions and properties from JavaSampler

2009-09-30 Thread Tech Newbie
How do I run the code directly in my JavaSampler?  Is there an API I can use? I am having trouble locating the right documentation.  All the ones I have found, like this one:  http://jakarta.apache.org/jmeter/usermanual/functions.html, shows how to setup in the GUI or in a test plan.  It's not

Number of threads for each JMeter slave instance

2009-09-30 Thread flysteer
Hi, I would like to configure each JMeter slave instance with specific number of threads (users). is it possible that each JMeter slave had its own test profile to run, and master just initiates the execution? Thanks. -- View this message in context:

Re: using variable in a RegExp extractor

2009-09-30 Thread sebb
On 30/09/2009, cmrz c...@yahoo.com wrote: I can't get the debug working right. Enabling debug does not seem to do anything and I am not sure how to get this log file. Can you let me know how to do this and I will move forward? thanks! Try enabling Debug for the RE Extractor - select

Re: Access JMeter functions and properties from JavaSampler

2009-09-30 Thread sebb
On 30/09/2009, Tech Newbie tec...@yahoo.com wrote: How do I run the code directly in my JavaSampler? Is there an API I can use? I am having trouble locating the right documentation. All the ones I have found, like this one: http://jakarta.apache.org/jmeter/usermanual/functions.html,

Re: Number of threads for each JMeter slave instance

2009-09-30 Thread sebb
On 30/09/2009, flysteer flyst...@yahoo.com wrote: Hi, I would like to configure each JMeter slave instance with specific number of threads (users). is it possible that each JMeter slave had its own test profile to run, and master just initiates the execution? The same test plan is

Re: Number of threads for each JMeter slave instance

2009-09-30 Thread Deepak Shetty
One question if the Threadgroup in the plan is configured such that the threadcount is say read from a property , then will the slaves get the value from the master or will they get it from when the slave was launched from the command line? regards deepak On Wed, Sep 30, 2009 at 3:36 PM, sebb

Re: Number of threads for each JMeter slave instance

2009-09-30 Thread sebb
Properties aren't sent to the slaves (unless you use the -G option) On 30/09/2009, Deepak Shetty shet...@gmail.com wrote: One question if the Threadgroup in the plan is configured such that the threadcount is say read from a property , then will the slaves get the value from the master or

Re: Number of threads for each JMeter slave instance

2009-09-30 Thread Deepak Shetty
hi ah ok. So if i launched each slave with its own property value and then used that as the thread count for the ThreadGroup , then I can accomplish what flysteer wants right? he only needs the thread count varied , not the plan.. regards deepak On Wed, Sep 30, 2009 at 3:48 PM, sebb

Re: Number of threads for each JMeter slave instance

2009-09-30 Thread sebb
Yes, that should work. On 30/09/2009, Deepak Shetty shet...@gmail.com wrote: hi ah ok. So if i launched each slave with its own property value and then used that as the thread count for the ThreadGroup , then I can accomplish what flysteer wants right? he only needs the thread count

Re: Not able to run the script for more than 200 users

2009-09-30 Thread nanduri
hi, Do we have any formula for calculating heap size.I'm not able to run for 500 users. I have set the heap size to -Xmx 51m and -Xms 1024m and the total memory of my system was 1GB.After running the script im getting java heap sapce out of memeoory Thanks, kirann RaGnoR wrote: set Xmx and

Re: Not able to run the script for more than 200 users

2009-09-30 Thread nanduri
nanduri wrote: hi, Do we have any formula for calculating heap size.I'm not able to run for 500 users. I have set the heap size to -Xmx 512m and -Xms 1024m and the total memory of my system was 1GB.After running the script im getting java heap sapce out of memeoory Thanks, kirann

Re: Number of threads for each JMeter slave instance

2009-09-30 Thread flysteer
Thanks Can you please elaborate on the slave setup and properties? sebb-2-2 wrote: Yes, that should work. On 30/09/2009, Deepak Shetty shet...@gmail.com wrote: hi ah ok. So if i launched each slave with its own property value and then used that as the thread count for the

Re: Not able to run the script for more than 200 users

2009-09-30 Thread nanduri
hi, i was suceeded with 300 vu's by setting heap size to Xmx 64m Xms 1024m.Again for 500 vu's i have set the heap size to 512m Xmx nanduri wrote: nanduri wrote: hi, Do we have any formula for calculating heap size.I'm not able to run for 500 users. I have set the heap size to

Re: Number of threads for each JMeter slave instance

2009-09-30 Thread Deepak Shetty
In your ThreadGroup , for the thread count specify something like ${__property(group1.threads,,10)} which will use the Jmeter property to determine the number of threads (10 will be the default if no value is specified) Then when you start JMeter on the slaves specify the value you want for that

Re: Not able to run the script for more than 200 users

2009-09-30 Thread Deepak Shetty
I assume you mean -Xms512M and -Xmx1024M . if you system only has 1GB i doubt you can run jmeter with -Xmx1024M see http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean On Wed, Sep 30, 2009 at 8:38 PM, nanduri nandurivk0...@gmail.com wrote: hi, Do we have any formula for