Postgres的高CPU记忆使用

发布于 2025-01-21 10:51:33 字数 668 浏览 1 评论 0原文

我有一个EC2实例运行PostgreSQL-13,其中一个数据库并不大,我认为

SELECT pg_size_pretty(pg_database_size('postgres')) -> 136 MB

我昨天插入了大约500K行,现在由于流程所示,由于Autovacuume,我对CPU和内存的使用率很高。

  • 我试图杀死该过程,但它仍然再次显示,
  • 我将Autovacuum属性更改为在配置中,但仍然出现(我知道这是不好的练习,但我正在测试)。

任何想法是正常的还是有解决方案。

“

I have an EC2 instance running Postgresql-13 with one database that isn't large i think

SELECT pg_size_pretty(pg_database_size('postgres')) -> 136 MB

I inserted about 500k rows yesterday and now i've a very high usage on cpu and memory due to autovacuume as the processes shows.

  • I tried to kill the process but it still shows again
  • I changed the autovacuum property to off in the config and still appears (i know that is bad practice but I was testing).

Any idea if that's normal or if there is a solution.

top command

Postgres grep

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文