Skip to content

App Service Performance Troubleshooting

Purpose

Use this guide to investigate slow responses and resource pressure on the affected ProcessFactorial App Service (such as the resource named dotnethost) in a Customer Hosted Model.

You will need access to the App Service and its App Service plan in Azure. Ask your hosting administrator to perform these checks if you do not have access.

Symptoms

  • Actions handled by the App Service respond slowly or time out.
  • CPU or memory usage remains high during the affected period.
  • Requests queue or responses slow down as activity increases.

High usage alone does not establish that the App Service needs more capacity. Delays or repeated requests caused by another component can produce similar symptoms.

Troubleshooting steps

1. Confirm the resource and capacity

  1. In the Azure Portal, open the App Service used by the affected environment.
  2. Record its App Service plan, tier, instance count, and scaling settings. Compare them with your agreed hosting configuration.
  3. Check which other apps share the plan, as they share its resources.
  4. Record recent scaling, configuration, or deployment changes and whether they coincide with the slowdown.

Instance count is a capacity and availability consideration, not proof of a performance fault. Ask the hosting administrator to confirm the appropriate tier and instance count for this environment.

2. Compare CPU usage with response times

  1. Open Monitoring → Metrics. For CPU Percentage and Memory Percentage, select the App Service plan as the metric scope; these percentages are plan metrics rather than individual app metrics.
  2. Set a time range covering the incident and a normal comparison period. Use the same time zone and time grain for related charts.
  3. Compare Average and Maximum CPU percentage where available. Split by instance where supported so an average does not hide a busy instance.
  4. On the App Service, compare request volume, response time, and HTTP errors for that period. On the plan, review HTTP queue length where available.

Brief CPU spikes may be normal. Sustained CPU near 100%, together with slower responses or growing queues, supports a resource-pressure investigation. Check other apps sharing the plan before attributing it to this service.

Example CPU percentage comparison

  1. On the plan, compare average and maximum Memory Percentage, and inspect individual instances where supported.
  2. Compare the affected period with normal usage. Check whether memory stabilises or keeps rising.
  3. Review the App Service's Diagnose and solve problems view for memory-pressure or restart findings during the same period.

Caching can keep memory usage high. A value around 90% alone neither proves a fault nor guarantees healthy operation. Usage near the limit becomes more significant when accompanied by restarts, errors, or worsening response times.

Example memory percentage comparison

4. Check whether another component caused the pressure

  1. Compare App Service response times with database or external-service delays during the same incident window.
  2. If MongoDB shows throttling or increased latency, follow Cosmos DB for MongoDB Performance Troubleshooting.
  3. Ask the administrator to check whether failures or repeated attempts increased before the CPU rise. High CPU after dependency failures can be a consequence of those failures.
  4. If no resource pressure is evident, ask the administrator or support to compare the affected action's duration with its dependency timings. A slow response with low CPU can still indicate a dependency or connectivity delay.

Evaluate possible causes

Possible cause Evidence supporting it What could mislead you / how to check
Capacity is insufficient for normal demand Sustained CPU pressure or memory pressure coincides with rising queues and slow responses under expected load, without an earlier dependency failure explaining it. A brief maximum CPU spike does not prove sustained saturation. Compare average, maximum, individual instances, and user impact.
Another app is consuming shared capacity Plan usage rises with activity in another app while the affected app's own traffic remains stable. Plan-wide percentages do not identify the app responsible. Review the apps sharing the plan with the administrator.
Dependency failures or repeated attempts are adding load Database or external-service failures precede or coincide with increased activity and slow responses. Scaling the App Service may temporarily reduce pressure while the initiating failure remains. Recheck after resolving that failure.
Memory pressure is affecting stability High or rising memory coincides with restarts, errors, or slower responses and is supported by Azure diagnostic findings. A stable high percentage can reflect caching. Compare with normal behaviour and diagnostic evidence rather than using a fixed percentage alone.
One instance is under pressure An individual instance has high usage or errors while the overall average appears acceptable. An aggregate average can hide an affected instance. Review instance-level metrics and diagnostics where available.
The delay is outside the App Service Responses slow while local resource usage remains normal and dependency timings increase. Low CPU does not establish that the complete action is healthy. Investigate the dependency involved in the slow action.

Resolution options

Choose the option supported by the findings above.

  • Confirmed capacity pressure: Ask the hosting administrator to evaluate a larger plan (scale up) or additional instances (scale out), according to the environment's supported configuration. Compare response times and resource usage after the change.
  • Contention from another app: Have the administrator review capacity allocation or isolation of apps sharing the plan. Verify that both the affected app and other apps continue to perform correctly.
  • Dependency failures or repeated attempts: Resolve the originating database or external-service issue, then reassess CPU, queues, and response times before deciding whether additional App Service capacity is needed.
  • Memory pressure, restarts, or a repeatedly affected instance: Share the Azure diagnostic findings with the administrator and ProcessFactorial Support. Review capacity and recent changes; a restart alone does not establish or resolve the underlying cause.
  • Delay without local resource pressure: Continue with the affected dependency's troubleshooting guidance or provide the incident evidence to support.

Verify the result

Repeat the original action under comparable load. Confirm that response times improve, queues and errors reduce where relevant, and the service remains stable across its instances during a representative busy period.

If the issue persists, share the App Service and plan names, tier and instance count, incident window and time zone, CPU and memory charts, response-time and error trends, diagnostic findings, and changes tried with your administrator or ProcessFactorial Support. Exclude credentials and sensitive personal information.