# Gatling fail when open large number of connections

**URL:** <https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881>\
**Category:** Gatling (Open-Source)\
**Created:** [March 18, 2014, 2:57pm UTC](https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881 "2014-03-18T14:57:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yanan\_Xin](https://avatars.discourse-cdn.com/v4/letter/y/e9bcb4/32.png) [@Yanan\_Xin](https://community.gatling.io/u/Yanan_Xin)\
**Post date:** [March 18, 2014, 2:57pm UTC](https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881/1 "2014-03-18T14:57:08Z")

</div>

Hi

I am using the websocket library to test a websocket server. When I use around 2000 connections(users), Gating simply freeze. It does not report anything.

Does anyone know how to solve this problem?

Thanks in advance,  
Yanan

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [March 18, 2014, 2:59pm UTC](https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881/2 "2014-03-18T14:59:11Z")

</div>

Version?

---

<div class="post-metadata">

**Author:** ![Yanan\_Xin](https://avatars.discourse-cdn.com/v4/letter/y/e9bcb4/32.png) [@Yanan\_Xin](https://community.gatling.io/u/Yanan_Xin)\
**Post date:** [March 18, 2014, 3:34pm UTC](https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881/3 "2014-03-18T15:34:25Z")

</div>

I am using 1.5.3 with the third party libray [https://github.com/gilt/gatling-websocket](https://github.com/gilt/gatling-websocket)

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [March 18, 2014, 4:09pm UTC](https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881/4 "2014-03-18T16:09:15Z")

</div>

Everything is in your sentence: third party = not maintained here.

Actually, this was contributed into Gatling and next 2M4 will ship websocket support.

There’s still a few things to tweak, but I was able to run 2.000 concurrent websockets against Play!'s chatroom sample on my local computer.

---

<div class="post-metadata">

**Author:** ![Yanan\_Xin](https://avatars.discourse-cdn.com/v4/letter/y/e9bcb4/32.png) [@Yanan\_Xin](https://community.gatling.io/u/Yanan_Xin)\
**Post date:** [March 18, 2014, 8:25pm UTC](https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881/5 "2014-03-18T20:25:44Z")

</div>

Thanks for your reply!

Well, here is what happened in our test. After creating 2000 concurrenct connections to our local server. Our server dies, which is fine for us. But the Gatling cannot finish as well, it is freezed somehow. As a testing tool, I assume Gatling is able to handle server failure. However, during our test, it fails when our server fails. Is this a bug in Gatling or did I miss something?

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [March 18, 2014, 9:09pm UTC](https://community.gatling.io/t/gatling-fail-when-open-large-number-of-connections/881/6 "2014-03-18T21:09:46Z")

</div>

My 2 cents: that’s a bug in this third party.

2 possibilities:

- you either stick to this third party, but then open an issue there
- you migrate to latest Gatling 2 snapshot that ships a refactored version of this websocket support, and if you can still reproduce, then I’ll gladly investigate  
Cheers,

Stéphane
