core icon indicating copy to clipboard operation
core copied to clipboard

.net core 1.1 Performance issue with Load: Azure PAAS

Open chintan3100 opened this issue 9 years ago • 7 comments

I have hosted my api on Azure with Web app S1 to S3 plan.

API taking a long time to respond. This issue will get when I have tried to run load test script with multiple users.

Any setting Should we consider for multiple users or when load increase for 1.1 http://weblogs.thinktecture.com/pawel/2017/03/aspnet-core-webapi-performance.html

like Kestrel ThreadPool Or

  <system.net>
    <connectionManagement>
      <add address="*" maxconnection="1000" />
    </connectionManagement>
  </system.net>

chintan3100 avatar Sep 03 '17 11:09 chintan3100

@Eilon

Petermarcu avatar Sep 03 '17 15:09 Petermarcu

@chintan3100 That's hard to know without more data. Are you talking about the time to communicate with an external api via HTTP? Or the time it takes your API itself to respond. Do you have any more specific data (Have you tried using application insights to measure?).

davidfowl avatar Sep 03 '17 16:09 davidfowl

Thanks @davidfowl Yes I am using application insights. The Same API will take 2-3 second to response and some time it takes 30second - 60 seconds. Some API communicate with azure blob storage for upload and download file. I analys bolb storage performance matrix but it shows max it took 120 ms to respond.

Upload file: we are using IFormFile file to get file. Download file: we are using FileResult

Note: All API and DB Operation are async. FIle upload, download Async, We created an index on DB.

chintan3100 avatar Sep 04 '17 06:09 chintan3100

@davidfowl @eilon @Petermarcu Can you please look for this issue

chintan3100 avatar Sep 09 '17 03:09 chintan3100

@chintan3100 can you share more info about the logs and data you've collected? It's nearly impossible to say what's going on without knowing where the time is spent. If you turn on detailed logging and/or Application Insights, hopefully you can at least see what part of the request is taking so long. Once you find that out, we can try to figure out why the slow part of the request is being slow.

Eilon avatar Sep 11 '17 04:09 Eilon

@chintan3100 since we haven't heard from you in over 30 days, I'm going to close this issue. If you still need help I think the best thing to do would be to open an issue with more of the details @Eilon asked for on the http://github.com/aspnet/home repo.

Petermarcu avatar Oct 12 '17 06:10 Petermarcu

Sorry for delay. Issue with Azure logging/.net core logging feature. when we enable logging to blob storage after 20 min we got out of memory error at string builder.

chintan3100 avatar Nov 01 '17 11:11 chintan3100