1
votes

I want to execute JMeter with thread number in property, that can be 10-1000 and set the optimal ramp up period.

In JMeter it's suggested to start with number of threads:

Start with Ramp-up = number of threads and adjust up or down as needed.

But in my servers it's not working well in this configuration and I need more than double the thread number.

Can I set the ramp up using a formula as thread Number (property value) * 2.5? or maybe should I add a Timer a the start of each thread for this purpose?

Currently if I put 2*2.5 in Ramp-Up period it consider it as 0

INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=2 ramp-up=0 perThread=0.0 delayedStart=false

I prefer solution in JMeter vanilla without plugins.

1
You can't use calculations in this fieldShai Alon
@ShaiAlon see accepted answeruser7294900

1 Answers

0
votes

You can use __groovy function to use property value:

${__groovy(2.5*props.get("rampup").toInteger()),)}

The __groovy function evaluates Apache Groovy scripts passed to it, and returns the result.

props - JMeterProperties (class java.util.Properties) object