Base solution for your next web application
Open Closed

High CPU usage shown by azure for the web app #4495


User avatar
0
sparkyjr created

We deployed our web app on azure and found that the app is performing poorly. So we ran the diagnostic test on azure, results of which is posted below.

[attachment=1:1k4949ma]Graph.png[/attachment:1k4949ma]

The diagnostic report also says that >90.91% of failures came from '/signalr/reconnect' path.

Is this something to do with Abp Notification System? If so, how can I disable the notification system?

[attachment=0:1k4949ma]signalR.png[/attachment:1k4949ma]


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

    @sparkyjr as you said, it seems like a signalR problem. Does SignalR connects when you open the website ? You can open your browser javascript console and check if there are logs like "Signalr is connected".

  • User Avatar
    0
    sparkyjr created

    Here is what I see browser console when I log in to my application

    [attachment=1:3r5p5rxb]console.png[/attachment:3r5p5rxb]

    And this is what I see in the network tab.

    [attachment=0:3r5p5rxb]network_tab.png[/attachment:3r5p5rxb]

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    All seems normal. SignalR tries to reconnect automatically when the connection state is disconnected. But I'm not sure if it can cause a high cpu usage or not.

    Which version of ABP do you use in your project ? There was a memory leak problem and fixed in this issue <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2629">https://github.com/aspnetboilerplate/as ... ssues/2629</a>.

  • User Avatar
    0
    sparkyjr created

    Hi ismcagdas,

    ABP packages version is 0.8.3.0

    Could you please tell us how to disable SignalR?

    Thanks, SparkyJr

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can see the integration steps of SignalR here <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/SignalR-Integration">https://aspnetboilerplate.com/Pages/Doc ... ntegration</a>. So, basically, you need to remove those parts from your project.

    After all, I suggest you to search for SignalR in *.js and *.cs files. There might be some parts which are not metioned in the documentation.

  • User Avatar
    0
    aaron created
    Support Team

    To disable SignalR without removing it, just remove the FEATURE_SIGNALR constant from all .csproj files, e.g. Web.Mvc.csproj