1

in Jmeter I have this situation:

  • ThreadGroup(N-Tread, RumpUp=X sec)
    • Loop1 (n times)
      • JavaSampler1
    • Syncronize
    • Sleep
    • Loop2 (n times)
      • JavaSampler2

What I want is that once the thread group is started, I want all threads to block (syncronize) after doing Loop1. Once the threads are all synchronized and blocked I would like to start a "sleep" phase for X seconds and then restart them all together

Olaf Kock
  • 46,930
  • 8
  • 59
  • 90

1 Answers1

0

Take a look at Synchronizing Timer and Flow Control Action Sampler combination, example implementation:

enter image description here

More information: Using the JMeter Synchronizing Timer

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Hi Dimitri, in the Synchronization Timer the fields "Number of Simulated User to Group By" and "Timeout in Millisecond", respectively what should I enter? in the "number of simulated .." the number of threads in the thread group? and in the "timeout in millisecond"? – Giuseppe Percuoco May 21 '21 at 08:50
  • `Number of Simulated User to Group By` - if you want to block all threads - it should be equal to number of threads in the thread group. `Timeout in Millisecond` - this is to protect you from infinite waiting in case if i.e. one thread fails and won't be able to join the others, I would put something reasonable, like maximum response time according to your SLA/NFR – Dmitri T May 21 '21 at 08:55