is it possible to get Gatling to wait more than 60 seconds for a request?

4,984 views
Skip to first unread message

Magnus Jensen

unread,
Sep 22, 2015, 8:41:43 AM9/22/15
to Gatling User Group
I have tweaked alle the parameters in gatling.conf that comes with default 60.000 ms to 90.000 but still I get timeout after 60.000.

//Magnus

william wu

unread,
Sep 22, 2015, 9:24:57 AM9/22/15
to Gatling User Group
check gatling.conf :

ahc {
      #allowPoolingConnections = true             # Allow pooling HTTP connections (keep-alive header automatically added)
      #allowPoolingSslConnections = true          # Allow pooling HTTPS connections (keep-alive header automatically added)
      #compressionEnforced = false                # Enforce gzip/deflate when Accept-Encoding header is not defined
      #connectTimeout = 60000                     # Timeout when establishing a connection
      #pooledConnectionIdleTimeout = 60000        # Timeout when a connection stays unused in the pool
      #readTimeout = 60000                        # Timeout when a used connection stays idle
      #connectionTTL = -1                         # Max duration a connection can stay open (-1 means no limit)
      #ioThreadMultiplier = 2                     # Number of Netty worker threads per core
      #maxConnectionsPerHost = -1                 # Max number of connections per host (-1 means no limit)
      #maxConnections = -1                        # Max number of connections (-1 means no limit)
      #maxRetry = 0                               # Number of times that a request should be tried again
      #requestTimeout = 60000                     # Timeout of the requests
      #useProxyProperties = false                 # When set to true, supports standard Proxy System properties
      #webSocketTimeout = 60000                   # Timeout when a used websocket connection stays idle
      #useRelativeURIsWithConnectProxies = true   # When set to true, use relative URIs when talking with an SSL proxy or a WebSocket proxy
      #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
      #keepEncodingHeader = true                  # Don't drop Encoding response header after decoding
      #webSocketMaxFrameSize = 10240              # Maximum frame payload size
    }

Magnus Jensen

unread,
Sep 23, 2015, 3:41:05 AM9/23/15
to Gatling User Group
As allready stated, I have checked and tweaked the config, but if you read my post you can see that even when changing the config it still stops waiting for a response after 60 seconds.

David Zhang

unread,
Oct 10, 2015, 2:36:35 PM10/10/15
to Gatling User Group
Did you find a solution? I changed requestTimeout = 90000, but seems it doesn't take effect.

Pierre DAL-PRA

unread,
Oct 10, 2015, 3:29:14 PM10/10/15
to gat...@googlegroups.com
Willd guess : did you uncomment the line you changed ?

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Zhang

unread,
Oct 10, 2015, 5:58:41 PM10/10/15
to Gatling User Group
Yes, I did uncomment the line.

Magnus Jensen

unread,
Oct 12, 2015, 1:45:07 PM10/12/15
to Gatling User Group
Yes it is uncommented. Still not working...

Magnus Jensen

unread,
Oct 12, 2015, 1:46:04 PM10/12/15
to Gatling User Group
No I did not find a solution. Did you?

David Zhang

unread,
Oct 17, 2015, 1:34:37 PM10/17/15
to Gatling User Group
No, not yet. I'm afraid the parameter is not working.

Srinivas SV

unread,
Sep 8, 2017, 10:37:07 AM9/8/17
to Gatling User Group

Adding the following to the gatling.conf will work.

gatling {
  http {
    ahc {
         requestTimeout = 120000

Ivan S

unread,
Sep 17, 2017, 7:39:36 AM9/17/17
to Gatling User Group
I concur with Srinivas SV.
Uncommenting and increasing requestTImeout value in gatling.conf worked for me.
Message has been deleted

Michael

unread,
Sep 27, 2017, 12:27:21 PM9/27/17
to Gatling User Group
For anyone else coming across this. I had this same issue, and it was resolved by also uncommenting and setting the timeouts on pooledConnectionIdleTimeout and readTimeout. I'm not sure if both settings are required (I just followed the advice my colleague gave me), but it did make my requestTimeout value finally take effect.
Reply all
Reply to author
Forward
0 new messages