# Maximum Load Generation Per Gatling Machine

**URL:** <https://community.gatling.io/t/maximum-load-generation-per-gatling-machine/5008>\
**Category:** Gatling (Open-Source)\
**Created:** [May 9, 2019, 10:58am UTC](https://community.gatling.io/t/maximum-load-generation-per-gatling-machine/5008 "2019-05-09T10:58:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganesh\_kakani1](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@ganesh\_kakani1](https://community.gatling.io/u/ganesh_kakani1)\
**Post date:** [May 9, 2019, 10:58am UTC](https://community.gatling.io/t/maximum-load-generation-per-gatling-machine/5008/1 "2019-05-09T10:58:18Z")

</div>

Hi

I would like to get briefly an idea on how much a single gatling machine can generate a load on a instance type of m4.2xlarge.Even though it varies from application to application…there will be some baseline load for a mimimum payload request.We have encountered Handshake timeout issues when we ran high request count through one machine.Does handhake timeout is because of huge load through one machine?? Any insights on this would help me for further tests which i am going to perform from gatling.

---

<div class="post-metadata">

**Author:** ![G\_Madhana\_Mohana\_Red](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@G\_Madhana\_Mohana\_Red](https://community.gatling.io/u/G_Madhana_Mohana_Red)\
**Post date:** [May 10, 2019, 2:33am UTC](https://community.gatling.io/t/maximum-load-generation-per-gatling-machine/5008/2 "2019-05-10T02:33:19Z")

</div>

Hi

set Java heap size in gatlng.sh DEFAULT\_JAVA\_OPTS="${DEFAULT\_JAVA\_OPTS} -Xmx **11** G -XX:+HeapDumpOnOutOfMemoryError"

for the size of m4.2xlarge, you can put load around 2500 VUsers for Web based application and for API based application it would around 5000 VUsers.

You can change the java heap size -Xmx **11** G to desired level as per your Java/Gatling process required.

---

<div class="post-metadata">

**Author:** ![notdryft](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/notdryft/32/1103_2.png) [@notdryft](https://community.gatling.io/u/notdryft)\
**Post date:** [May 13, 2019, 8:15am UTC](https://community.gatling.io/t/maximum-load-generation-per-gatling-machine/5008/3 "2019-05-13T08:15:57Z")

</div>

Hi,

I might write an article on this but here are the main things to look at while choosing an instance type:

- Use c5 instance types
- Check how much memory and sockets you need, sockets being the most limiting issue when deciding how to scale a load test: use prometheus/node\_exporter
- Optimize the kernel  
Most of the type, unless you want really high throughput, you’d be good with a c5.2xlarge.

More here: [https://github.com/notdryft/hostile-territory](https://github.com/notdryft/hostile-territory)  
The talk itself is in french, the resources are in english inside the repository.

---

<div class="post-metadata">

**Author:** ![ganesh\_kakani1](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@ganesh\_kakani1](https://community.gatling.io/u/ganesh_kakani1)\
**Post date:** [May 13, 2019, 8:37am UTC](https://community.gatling.io/t/maximum-load-generation-per-gatling-machine/5008/4 "2019-05-13T08:37:12Z")

</div>

Yes Guillaume CORRÉ you are right, an article on this would be helpful for everyone.
