简体   繁体   English

Azure PostgreSQL 服务器的数据库显示 100% CPU 利用率

[英]Azure Database for PostgreSQL server is displaying 100% CPU utilization

Azure Database for the PostgreSQL server is displaying 100% CPU utilization every day from 10 AM to 12 PM. Azure PostgreSQL 服务器的数据库每天从上午 10 点到下午 12 点显示 100% 的 CPU 利用率。 The load on the server is minimal when this is happening.发生这种情况时,服务器上的负载是最小的。 Did anyone face the same issue?有没有人面临同样的问题? What could be the probable cause for this to happen?发生这种情况的可能原因是什么?

Attached a screenshot of the CPU usage for 3 days (below are the observations).附上 3 天 CPU 使用率的截图(以下是观察结果)。

  • The peak is reached between 10 AM to 12 PM every day.每天上午 10 点到下午 12 点之间达到高峰。
  • There is a sharp increase (If the increase was due to the load then the peak should be attained gradually)急剧增加(如果增加是由于负载,则应逐渐达到峰值)

在此处输入图像描述

Check your long running queries to understand what is causing high processing time and update your database tables Statistics regularly by using the “Analyze” command.检查您长时间运行的查询以了解导致高处理时间的原因,并使用“分析”命令定期更新您的数据库表统计信息。

If you maxed out CPU, scaling up your server by increasing the number of vCores is a good approach to enlarge your resources to be able to accommodate your workload.如果您用尽了 CPU,则通过增加 vCore 的数量来扩展服务器是扩大资源以适应工作负载的好方法。

Enable Azure PostgreSQL Query Store to be able to view your long running queries:启用 Azure PostgreSQL 查询存储,以便能够查看您长时间运行的查询:

https://docs.microsoft.com/en-us/azure/postgresql/concepts-query-store https://docs.microsoft.com/en-us/azure/postgresql/concepts-query-store

Also please follow this quick tips for PostgreSQL也请遵循 PostgreSQL 的快速提示

https://techcommunity.microsoft.com/t5/Azure-Database-Support-Blog/Azure-Database-for-PostgreSQL-performance-Quick-Tips/ba-p/369125 https://techcommunity.microsoft.com/t5/Azure-Database-Support-Blog/Azure-Database-for-PostgreSQL-performance-Quick-Tips/ba-p/369125

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Cloud PostgreSQL:利用率保持在 100% - Google Cloud PostgreSQL: Utilization remains at 100% 什么原因导致Postgresql连接在100%CPU的服务器上卡在BIND上? - What causes Postgresql connections to get stuck on BIND with server at 100% CPU? PostgreSQL数据库中的Linux系统利用率导入 - Linux system utilization import in PostgreSQL Database Azure Powershell - 重命名 PostgreSQL 服务器实例的数据库 - Azure Powershell - rename Database for PostgreSQL Server instance 如何将本地 PostgreSQL 数据库备份恢复到 Azure PostgreSQL 服务器? - How to restore local PostgreSQL database backup to Azure PostgreSQL server? Azure PostgreSQL 服务器的数据库:主机没有 pg_hba.conf 条目 - Azure Database for PostgreSQL server: no pg_hba.conf entry for host 有没有办法创建从 Azure SQL 数据库到 PostgreSQL 的链接服务器? - Is there a way to create a linked server from an Azure SQL database to PostgreSQL? Azure 用于 PostgreSQL 灵活服务器部署的数据库因 databaseName 参数错误而失败 - Azure Database for PostgreSQL flexible server deployment fails with databaseName param error AWS RDS 实例 100% CPU 利用率为 PostgreSQL 正常使用 - AWS RDS instance 100% CPU utilisation for PostgreSQL for normal usage 为什么我的PostgreSQL服务器cpu受到限制? - Why is my PostgreSQL server cpu constrained?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM