question

engcanada-3869 avatar image
0 Votes"
engcanada-3869 asked engcanada-3869 answered

Web App Experiencing “Slow Requests Detected”

My we app hosted on azure has recently started experiencing slow down issues.
I have since Scaled-Up as well as Scaled-out just to coupe, but by no means this fixes the issue.
Please see the azure diagnostic for the last 24 hours:

We analyzed 71 slow request(s) and identified module(s) consuming most of the time are - ManagedPipelineHandler(74.1%) . To troubleshoot performance issues or to identify the root cause of the issue, you need to collect additional data because, most likely, the issue lies within Application layer. App Services doesn't collect application-level telemetry to identify slowness issues in your application code.


I feel if anything to be done to resolve this issue on my application layer would be in the web.config file.

 <?xml version="1.0" encoding="utf-8"?>
 <configuration>
   <system.web>
     <compilation debug="false" targetFramework="4.7.2">      
 <assemblies>
         <add assembly="System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
         <add assembly="System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
       </assemblies>
     </compilation>
     <httpRuntime maxRequestLength="500000" executionTimeout="3600" />
     <globalization culture="en-US" uiCulture="en-US" />
     <customErrors mode="Off" />
   </system.web>
   <connectionStrings>
     <add connectionString="Server=tcp:serious-sql.database.windows.net,1433;Initial Catalog=;Persist Security Info=False;User ID=;Password=;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=3000;Max Pool Size=300;" name=" " providerName="System.Data.SqlClient" />
   </connectionStrings>
   <runtime>
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
         <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
         <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
         <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
         <bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
         <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
         <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
         <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
         <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
         <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
       </dependentAssembly>
       <dependentAssembly>
         <assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
         <bindingRedirect oldVersion="0.0.0.0-5.0.0.2" newVersion="5.0.0.2" />
       </dependentAssembly>
     </assemblyBinding>
   </runtime>
   <system.data>
     <DbProviderFactories>
       <remove invariant="System.Data.SqlServerCe.4.0" />
       <add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
     </DbProviderFactories>
   </system.data>
   <system.webServer>
     <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
     <httpCompression>
       <dynamicTypes>
         <clear />
         <add enabled="true" mimeType="text/*" />
         <add enabled="true" mimeType="message/*" />
         <add enabled="true" mimeType="application/x-javascript" />
         <add enabled="true" mimeType="application/javascript" />
         <add enabled="true" mimeType="application/json" />
         <add enabled="false" mimeType="*/*" />
         <add enabled="true" mimeType="application/atom+xml" />
         <add enabled="true" mimeType="application/atom+xml;charset=utf-8" />
       </dynamicTypes>
       <staticTypes>
         <clear />
         <add enabled="true" mimeType="text/*" />
         <add enabled="true" mimeType="message/*" />
         <add enabled="true" mimeType="application/javascript" />
         <add enabled="true" mimeType="application/atom+xml" />
         <add enabled="true" mimeType="application/xaml+xml" />
         <add enabled="true" mimeType="application/json" />
         <add enabled="false" mimeType="*/*" />
       </staticTypes>
     </httpCompression>
     <httpErrors errorMode="DetailedLocalOnly">
       <remove statusCode="500" subStatusCode="-1" />
       <remove statusCode="404" subStatusCode="-1" />
       <error statusCode="404" prefixLanguageFilePath="" path="/error/404" responseMode="ExecuteURL" />
       <error statusCode="500" prefixLanguageFilePath="" path="/error/500" responseMode="ExecuteURL" />
     </httpErrors>
     <httpProtocol>
       <customHeaders>
         <add name="ETag" value="&quot;&quot;" />
       </customHeaders>
     </httpProtocol>
     <!--
     <handlers>
       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
       <remove name="OPTIONSVerbHandler" />
       <remove name="TRACEVerbHandler" />
       <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
     </handlers>
     -->
   </system.webServer>
   <uri>
     <idn enabled="All" />
     <iriParsing enabled="true" />
   </uri>
 </configuration>







azure-webapps
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @engcanada-3869,

When you troubleshooted your performance issue, where there any commonalities? Does the slow down occur across the same (set) of requests? Are the slowed requests tied to any dependencies like your SQL managed instance?

0 Votes 0 ·

1 Answer

engcanada-3869 avatar image
0 Votes"
engcanada-3869 answered

133192-zzz.jpg



Does not indicate any dependencies.
Please see the image. Perhaps the image can help.


zzz.jpg (241.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.