# I want run my simulation particular number of number with a max duration of simulation

**URL:** https://community.gatling.io/t/i-want-run-my-simulation-particular-number-of-number-with-a-max-duration-of-simulation/7972
**Category:** Gatling (Open-Source)
**Tags:** gatling-academy
**Created:** [May 25, 2023, 12:51pm UTC](https://community.gatling.io/t/i-want-run-my-simulation-particular-number-of-number-with-a-max-duration-of-simulation/7972 "2023-05-25T12:51:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shbhmsngh](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@shbhmsngh](https://community.gatling.io/u/shbhmsngh)
#### Post date: [May 25, 2023, 12:51pm UTC](https://community.gatling.io/t/i-want-run-my-simulation-particular-number-of-number-with-a-max-duration-of-simulation/7972/1 "2023-05-25T12:51:22Z")

</div>

I want to simulate Jmeter’s thread group behaviour where we can setup number of loop and thread duration both, if thread completes defined loops it will terminate the simulation or if time limit is reached simulation will be terminated,  
can any one please help me with creating simulation like this in gatling.

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [May 25, 2023, 7:13pm UTC](https://community.gatling.io/t/i-want-run-my-simulation-particular-number-of-number-with-a-max-duration-of-simulation/7972/2 "2023-05-25T19:13:58Z")

</div>

Forget about the word “threads”, it’s a leaking JMeter implementation detail. Think of virtual users instead.

You should read the documentation, in particular [loops](https://gatling.io/docs/gatling/reference/current/core/scenario/#loop-statements).

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)
#### Post date: [June 24, 2023, 7:14pm UTC](https://community.gatling.io/t/i-want-run-my-simulation-particular-number-of-number-with-a-max-duration-of-simulation/7972/3 "2023-06-24T19:14:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
