Base solution for your next web application
Open Closed

TokenAuth Authenticate via Swagger API is really slow #11193


User avatar
0
mightyit created

Product Version: 11.2.0 Product Type: MVC Product Type: .Net Core

ABP Framework Version: 7.3.0

Hi

We are noticing extremely long request times with the TokenAuth/Authenticate method in our production environment. Authenticate requests are taking 65 seconds to complete with clients using the API.

However when I run a authenticate request via postman it only takes 1.6 seconds. We have other methods exposed to our API which are nowhere near as slow as the authenticate these take under a second to complete.

Our resource usage on the app service is extremely low when these requests take so long to complete so its not a resource bottleneck that is causing the issue.

Any help in this regard would be greatly appreciated.


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mightyit

    1. Did you create your project with 11.2 version or did you upgrade from an old version ?
    2. Could you send your server side log file to [email protected] for us to investigate it ?

    Thanks,

  • User Avatar
    0
    mightyit created

    Hi ismcagdas

    We upgraded from an old version however this issue was present in the old version as well that is why we decided to upgrade. Will send through the log file shortly thanks

  • User Avatar
    0
    mightyit created

    Hi

    we managed to solve the issue after reading this https://support.aspnetzero.com/QA/Questions/10764/Bad-performance-due-to-AbpUserTokens-table

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks a lot @mightyit