Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Application consuming high CPU usage #10866


User avatar
0
shedspotter created

What is your product version? 10.3.0

What is your product type (Angular or MVC)? Angular

What is product framework type (.net framework or .net core)? .NET 5

Hi , we are having problem of getting high CPU usage. Our application has been depolyed in azure. it is taking high CPU usage as well and thread count is also getting very high in azure , we are avg 100 threads in azure

Thanks


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

    Hi @shedspotter

    Could you upgrade all your Abp.* NuGet packages to 6.6.2 and see if it helps ?

    Thanks,

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas, I have updated the nuget packge and then run the tool called jetbrains for profiler and refreshed the page and found only refreshing the page is tasking almost 575mb of memory and aslo if you can see the unmanaged memeory it also 264 mb

    and in second screen shot if you can see the unmanaged memory it showing 314mb at that time I am not using anything application is in ideal mode

    and aslo please let me know how the objects are getting disposed in your applicate becuase I did not find IDisposable interface anywhere

    Thanks

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas, this is the screen shot from azure I have taken today and you can see after updating the nuget package it not changing the result , still we are hitting 60% CPU , you can see the spikes in the screen shot

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    I have a few more questions.

    1. Do you use Redis in your app ?
    2. How many users are actively using the system.
    3. Do you have any "async void" methods ?

    Thanks,

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas,

    1. Do you use Redis in your app ? = > No
    2. How many users are actively using the system. = > 15 users in development
    3. Do you have any "async void" methods ? = > yes but those are private menthod and Task type not actually void type

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    It is really hard to reach to such a CPU usage with 15 users. Aare you able to reproduce this on your local environment ? If so, can we also test it with your solution and try to find the problem ?

    Thanks,

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas, yes I am able to reporduced it , the above two images is from my login page and https://support.aspnetzero.com/QA/Questions/10866/Application-consuming-high-CPU-usage#answer-fedf259a-7b40-2872-fa3e-3a01d541dbda this from azure You can also test it in my local environment, we can not share our code as we are not allowed to shared due to proprietary , we can scheduled a call for this

    Thanks

  • User Avatar
    0
    musa.demir created

    Hi @shedspotter

    Let us check it first. Then we can schedule a call if it is necessary. You can follow the progress here: https://github.com/aspnetzero/aspnet-zero-core/issues/4238

  • User Avatar
    0
    shedspotter created

    Hi @musa.demir sure

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    Could you at least share your web app's Startup.cs and its csproj files ?

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas, I have send the required file through email "[email protected]"

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    Thanks, I received the files. I will investigate and reply via email.

  • User Avatar
    0
    ecash created

    Hi, We are also facing the same issue for our applicaiton. Any suggestion ?

    What is your product version? 10.5.0

    What is your product type (Angular or MVC)? MVC

    What is product framework type (.net framework or .net core)? .NET 6

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ecash

    Could you upgrade your ABP NuGet packages to latest version and also apply changes in below PRs;

    1. https://github.com/aspnetzero/aspnet-zero-core/pull/4234
    2. https://github.com/aspnetzero/aspnet-zero-core/pull/4375
  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas, is there any update on the issue , and also yestarday I have sended you memory dump file via email so that it would help you guys to identiy the issue of high CPU usage

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks, we will check the files you have shared. In the meantime, did you try to apply changes I suggested here ?