# Connection timed out when hitting more than 10000 QPS via gatling,

**URL:** <https://community.gatling.io/t/connection-timed-out-when-hitting-more-than-10000-qps-via-gatling/5035>\
**Category:** Gatling (Open-Source)\
**Created:** [May 22, 2019, 7:07pm UTC](https://community.gatling.io/t/connection-timed-out-when-hitting-more-than-10000-qps-via-gatling/5035 "2019-05-22T19:07:44Z")\
**Posts on this page:** 4\
**Page:** 1

<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 22, 2019, 7:07pm UTC](https://community.gatling.io/t/connection-timed-out-when-hitting-more-than-10000-qps-via-gatling/5035/1 "2019-05-22T19:07:44Z")

</div>

Bandwidth?

---

<div class="post-metadata">

**Author:** ![vishal\_singh](https://avatars.discourse-cdn.com/v4/letter/v/b4bc9f/32.png) [@vishal\_singh](https://community.gatling.io/u/vishal_singh)\
**Post date:** [May 22, 2019, 7:32pm UTC](https://community.gatling.io/t/connection-timed-out-when-hitting-more-than-10000-qps-via-gatling/5035/2 "2019-05-22T19:32:01Z")

</div>

You mean internet bandwidth to hit the server?

Also, here is my gatling.conf, any suggestions on this :

ahc {

#keepAlive = true # Allow pooling HTTP connections (keep-alive header automatically added)

connectTimeout = 600000 # Timeout when establishing a connection

handshakeTimeout = 600000 # Timeout when performing TLS hashshake

#pooledConnectionIdleTimeout = 60000 # Timeout when a connection stays unused in the pool

readTimeout = 600000 # Timeout when a used connection stays idle

#maxRetry = 2 # Number of times that a request should be tried again

requestTimeout = 600000

#maxRetry = 2 # Number of times that a request should be tried again

requestTimeout = 600000 # Timeout of the requests

#acceptAnyCertificate = true # When set to true, doesn’t validate SSL certificates

#httpClientCodecMaxInitialLineLength = 4096 # Maximum length of the initial line of the response (e.g. “HTTP/1.0 200 OK”)

#httpClientCodecMaxHeaderSize = 8192 # Maximum size, in bytes, of each request’s headers

#httpClientCodecMaxChunkSize = 8192 # Maximum length of the content or each chunk

#webSocketMaxFrameSize = 10240000 # Maximum frame payload size

#sslEnabledProtocols = [TLSv1.2, TLSv1.1, TLSv1] # Array of enabled protocols for HTTPS, if empty use the JDK defaults

#sslEnabledCipherSuites = [] # Array of enabled cipher suites for HTTPS, if empty use the AHC defaults

#sslSessionCacheSize = 0 # SSLSession cache size, set to 0 to use JDK’s default

#sslSessionTimeout = 0 # SSLSession timeout in seconds, set to 0 to use JDK’s default (24h)

#useOpenSsl = false # if OpenSSL should be used instead of JSSE (requires tcnative jar)

#useNativeTransport = false # if native transport should be used instead of Java NIO (requires netty-transport-native-epoll, currently Linux only)

#tcpNoDelay = true

#soReuseAddress = false

#soLinger = -1

#soSndBuf = -1

#soRcvBuf = -1

#allocator = “pooled” # switch to unpooled for unpooled ByteBufAllocator

#maxThreadLocalCharBufferSize = 200000 # Netty’s default is 16k

}

---

<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 22, 2019, 7:52pm UTC](https://community.gatling.io/t/connection-timed-out-when-hitting-more-than-10000-qps-via-gatling/5035/3 "2019-05-22T19:52:22Z")

</div>

I mean bandwidth at any network component between your Gatling injectors and your app servers: servers NIC, network switches, etc.

In any case, this is not a Gatling issue. If you don’t hit a CPU limit, that means you’re hitting an IO limit: either you server doesn’t respond fast enough, or you’re saturating your network.

---

<div class="post-metadata">

**Author:** ![vishal\_singh](https://avatars.discourse-cdn.com/v4/letter/v/b4bc9f/32.png) [@vishal\_singh](https://community.gatling.io/u/vishal_singh)\
**Post date:** [May 22, 2019, 8:27pm UTC](https://community.gatling.io/t/connection-timed-out-when-hitting-more-than-10000-qps-via-gatling/5035/4 "2019-05-22T20:27:36Z")

</div>

Is there any way in gatling to reuse the connections?
