AzureAppServiceのCPU使用率が特定の時間に高まる

2023-08-01T09:56:47.3466667+00:00

B1プランを利用しています。

Webサイトは1件搭載していますが、これの稼働率はわずかです。

UTCで06:20, 14:20, 22:20頃によくCPU使用率が高まります。平均で80%やそれ以上に達し、90%のアラートもなることがあります。

OS側で何か動いているのかと考えていますが、何か定期実行されるものがあるのでしょうか?

ご回答よろしくお願いします。

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2023-08-01T23:07:53.8066667+00:00

    @顔画像品質判定・加工システム It seems like your Azure AppService is experiencing high CPU usage at certain times of the day. There could be several reasons for this, such as scheduled tasks, background processes, an issue with your code causing higher than needed CPU usage or high traffic.

    1. Check the Azure portal dashboard for your AppService to see if there are any spikes in traffic during the times when CPU usage is high. You can do this by following these steps1:
      1. Log in to the Azure portal and navigate to your AppService.
        1. Click on the "Metrics" tab in the left-hand menu.
          1. Select "CPU Percentage" as the metric you want to monitor.
            1. Set the time range to cover the period when you experienced high CPU usage.
            Check the graph to see if there are any spikes in CPU usage during that time.
    2. Set up monitors to watch for certain metrics, such as CPU usage, and check the MAX values for CPU so you don't miss the peak values12. You can do this by following these steps1:
      1. Log in to the Azure portal and navigate to your AppService.
        1. Click on the "Monitoring" tab in the left-hand menu.
          1. Click on "Add metric alert" to create a new alert rule.
            1. Select "CPU Percentage" as the metric you want to monitor.
              1. Set the threshold for the alert to trigger when CPU usage exceeds a certain percentage.
                1. Set the time range to cover the period when you experienced high CPU usage.
                  1. Configure the alert to send an email or other notification when it triggers.
    3. If the above steps do not work, can you try to scale up to a B2 instance to see if similar behavior occurs?
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.