Base solution for your next web application
Open Closed

Application CPU Usage too high #10223


User avatar
0
kansoftware created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 8.1
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .net core

We are observing high CPU usage by application even when we are running pages generated from RAD. while we open any page like users, roles etc on refresh it gives a cpu spike. but if we hit same service through swagger it does not.

When we open a page with single dropdown then also it gives a cpu spike of around 10%. On forms having around 15 dropdowns ( with very low data and queries are also not expensive) filled through ajax also gives a cpu spike to 100%.

Application is hosted on AWS: Application server configuration : Xeon M5 Processor 2.5Ghz 4 cores , 16 GB Ram RDS Instance (Database server) : Xeon M5 Processor 2 cores , 16 GB Ram

Please find attached screenshot with the report genereated from Visual studio diagnostics tool. We are not able to understand the cpu consumed by External code 3165 (56%)

Please suggest whats the reason and how to fix ?


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

    Hi @kansoftware

    Could you share the generated source code for an App Service ?

    Thanks,

  • User Avatar
    0
    kansoftware created

    Hi ,

    Please find below app service below:

    http://103.89.253.21:420/CountriesAppService.cs http://103.89.253.21:420/MedicalPrescriptionsAppService.cs

    let me know if you need anything else.

    Regards, Harshit

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kansoftware

    When I check the queries on AppServices, all seems fine. Is it possible to share your app with us to work on it ? If it is possible, please share it with [email protected].

    Thanks,

  • User Avatar
    0
    kansoftware created

    Hi @ismcagdas

    Please find the code below: ##############################

    As it is production issue its very critical as client is facing the same from past few days and we need to solve this ASAP. We can also connect for a remote session where we can help you understand the issue as we have already tried to debug the same from so many days

    Regards, Harshit

  • User Avatar
    0
    kansoftware created

    Hi,

    We have also observed While we are filling 5 drop downs from Controller it takes 15% cpu but if we are filling the 5 drop downs through ajax using jquery it goes to 100%.

    Regards, Harshit

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kansoftware

    I have replied to your email, we can continue via email.