question

DavinderSingh-3547 avatar image
DavinderSingh-3547 asked ·

Getting ConnectTimeoutException/TimeOut from Azure App Server (P2V2) when putting a load of 3000req/second using tools like Gatling, Jmeter.

I have deployed Spring boot rest API service (deployable - Jar) to Azure App service (one instance). This is a very simple API which is returning an in memory object. API itself takes 1 milliseconds as its returning an in memory object.















When I am putting a load of 3000req/seconds using Gatling/Jmeter. I am getting below timeout exceptions.







  1. i.g.h.c.i.RequestTimeoutException: Request timeout







  2. j.n.s.SSLException: handshake timed out







  3. i.n.c.ConnectTimeoutException: connection timed out















App server configs







Pricing tier : P2V2







OS: Linux







Runtime: JRE8















Note: This is a spring boot jar that is deployed with embedded tomcat. Tomcat max thread count is kept very high server.tomcat.max-threads=4000







server.tomcat.min-spare-threads=3000















So, I do not find any reason why I am getting the time out exceptions.







"Diagnose and solve problems" is not showing anything also.







Please help here.

azure-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JoaquinVano avatar image
JoaquinVano answered ·

We probably need more information, I recommend you to open a support ticket, so we can investigate more about this problem.

To create a support request in Azure:
https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

2 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Raised a ticket for same. Ticker id : 120052822000705.

0 Votes 0 · ·
ryanchill avatar image ryanchill DavinderSingh-3547 ·

Hi @DavinderSing-3547,

I saw that your case was closed. I wanted to follow up to see if https://azure.github.io/AppService/2018/03/01/Deep-Dive-into-TCP-Connections-in-App-Service-Diagnostics.html helped in determining your TCP connections and if that helped isolate the rootcause of your Timeouts. Let me know if we can be of further assistance.

0 Votes 0 · ·