# How to fix this j.n.ConnectException Handshake timed out

**URL:** <https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461>\
**Category:** Gatling (Open-Source)\
**Created:** [August 22, 2018, 12:40pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461 "2018-08-22T12:40:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalyan\_kumar](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kalyan\_kumar](https://community.gatling.io/u/Kalyan_kumar)\
**Post date:** [August 22, 2018, 12:40pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/1 "2018-08-22T12:40:13Z")

</div>

i am new to gatling tool ,  
How to fix the above problem:  
i thought which can be either server side or gatling Application side  
but how i conclude this is a Gatling Application side if am running gatling with more than 40 users load with different sites but the result is same  
I tried with Flipkart  
I tried with our own site but both giving same result Handshake timedout

How to fix it, what configuration has to be changed

 ![Flipkart.png](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/74b8042dcee517f714d09958923dd23701fc60dd.png)

---

<div class="post-metadata">

**Author:** ![Flavio\_da\_Silveira\_P](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@Flavio\_da\_Silveira\_P](https://community.gatling.io/u/Flavio_da_Silveira_P)\
**Post date:** [August 22, 2018, 12:47pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/2 "2018-08-22T12:47:47Z")

</div>

have you tried to use a small number of users?

---

<div class="post-metadata">

**Author:** ![Kalyan\_kumar](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kalyan\_kumar](https://community.gatling.io/u/Kalyan_kumar)\
**Post date:** [August 22, 2018, 2:55pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/3 "2018-08-22T14:55:42Z")

</div>

Yes less number of users it will work, but I have to put load. Up to 20 users it working fine after that I am getting that time out

---

<div class="post-metadata">

**Author:** ![Flavio\_da\_Silveira\_P](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@Flavio\_da\_Silveira\_P](https://community.gatling.io/u/Flavio_da_Silveira_P)\
**Post date:** [August 22, 2018, 3:00pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/4 "2018-08-22T15:00:55Z")

</div>

Maybe the problem is with your network.

---

<div class="post-metadata">

**Author:** ![Kalyan\_kumar](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kalyan\_kumar](https://community.gatling.io/u/Kalyan_kumar)\
**Post date:** [August 22, 2018, 3:05pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/5 "2018-08-22T15:05:55Z")

</div>

On I will check it

---

<div class="post-metadata">

**Author:** ![Kalyan\_kumar](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kalyan\_kumar](https://community.gatling.io/u/Kalyan_kumar)\
**Post date:** [August 22, 2018, 3:07pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/6 "2018-08-22T15:07:08Z")

</div>

Ok I will try with other network

---

<div class="post-metadata">

**Author:** ![Flavio\_da\_Silveira\_P](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@Flavio\_da\_Silveira\_P](https://community.gatling.io/u/Flavio_da_Silveira_P)\
**Post date:** [August 22, 2018, 4:05pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/7 "2018-08-22T16:05:41Z")

</div>

I recommend you to increase the number of users slowly to meet the saturation point of the network.  
Injects a given number of users with a linear ramp over a given duration

  
rampUsers(x) over (y seconds)

---

<div class="post-metadata">

**Author:** ![Kalyan\_kumar](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kalyan\_kumar](https://community.gatling.io/u/Kalyan_kumar)\
**Post date:** [August 22, 2018, 6:46pm UTC](https://community.gatling.io/t/how-to-fix-this-j-n-connectexception-handshake-timed-out/4461/8 "2018-08-22T18:46:19Z")

</div>

I will try it . Thank you
