Throughput Shaping Timer

220 views
Skip to first unread message

gsm...@gmail.com

unread,
Jul 5, 2016, 3:37:43 AM7/5/16
to jmeter-plugins
Hi Team,

Could you please let me know how to use the below attributes in command line. I've tried all the way and all my efforts are in vein
Tried:
1.  -J "loadprofile=const(10,60s)"_
2.  -J"loadprofile=const(10,60s)"_
3.  -J "loadprofile=const(10,60s)"
4.  -J"loadprofile=const(10,60s)"

  • const(N, T) - hold constant load of N requests per second for T seconds
  • line(N, K, T) - linear increase load from N to K RPS during T seconds
  • step(N, K, S, T) - generate stepping load from N RPS to K rps, step height S RPS, step duration T seconds

Andrey Pokhilko

unread,
Jul 5, 2016, 6:23:37 AM7/5/16
to jmeter-...@googlegroups.com
Hi,

Try -Jload_profile=const(10,60s)

Andrey Pokhilko

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gsm...@gmail.com

unread,
Jul 5, 2016, 8:24:39 AM7/5/16
to jmeter-plugins
No, its not working. Could you please describe me more. Like should i need to add the timer(Throughput Shaping Timer) in script. Please help me out. Thanks 

gsm...@gmail.com

unread,
Jul 5, 2016, 8:34:02 AM7/5/16
to jmeter-plugins, gsm...@gmail.com
Hi,

Details are below 
cmd line: jmeter -n -t test.jmx -l abcd.jtl -Jload_profile=const(10,60s)

Hits per sec graph: in attachment

Script: in attachment 
Hitspersec.JPG
test.jmx

Andrey Pokhilko

unread,
Jul 5, 2016, 8:34:20 AM7/5/16
to jmeter-...@googlegroups.com
Well, that's quite obvious that you need to add the plugin into script to make it to handle special property.

Andrey Pokhilko

On 07/05/2016 03:24 PM, gsm...@gmail.com wrote:
No, its not working. Could you please describe me more. Like should i need to add the timer(Throughput Shaping Timer) in script. Please help me out. Thanks 

gsm...@gmail.com

unread,
Jul 5, 2016, 8:37:40 AM7/5/16
to jmeter-plugins
Thanks for quick turnaround. Yes Indeed plugin were added successfully. I'd able to achieve from GUI but not from command line. 
Script and graph details are attached in early mail. Thanks in advance  

Andrey Pokhilko

unread,
Jul 5, 2016, 8:42:52 AM7/5/16
to jmeter-...@googlegroups.com
It should work if you have the plugin as the top element in your test plan. Maybe you still need the quotes. I'd try it like this:

jmeter -J"load_profile=const(10,60s)" -n -t test.jmx -l abcd.jtl

Andrey Pokhilko

Gnana sekar

unread,
Jul 5, 2016, 8:51:04 AM7/5/16
to jmeter-...@googlegroups.com

Perfect!! Thanks Andrey it's working 😃

You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/P304-YFMKhE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages