Increased CPU usages during SQL manged instance Maintenance

Joby Mathew 5 Reputation points
2025-06-14T06:54:02.4666667+00:00

One of our SQL Managed Instances experienced a CPU usage increase from 40% to 90%, despite a constant user workload. We noticed that SQL was restarted around time, and Azure has confirmed ongoing maintenance through notification. However, the maintenance notification only mentioned a possible drop in connectivity, not a rise in CPU usage. Could you please advise?

SQL Server Database Engine
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 121.3K Reputation points MVP Volunteer Moderator
    2025-06-14T15:28:36.83+00:00

    If SQL Server is restarted the plan cache goes out the window, so all queries has to be compiled anew. Likewise the buffer cache also goes away, so data has to be read from disk. So, yes, it is a expected to see a temporary increase of CPU after a server restart.

    If the CPU remains on a high level, that suggest that some of the query plans are not the same as before, and some of them are less appropriate. If you find the Query Store for the database in Management Studio, the node Regressed Queries may reveal the culprit(s).


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.