# CPU使用率の高さによるサーバーパフォーマンスの問題

**URL:** <https://meta.discourse.org/t/server-performance-issues-due-to-high-cpu-usage/333279>\
**Category:** Product Support\
**Created:** [2024 年 10 月 29 日午前 12:02 UTC](https://meta.discourse.org/t/server-performance-issues-due-to-high-cpu-usage/333279 "2024-10-29T00:02:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![chulapo](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@chulapo](https://meta.discourse.org/u/chulapo)\
**Post date:** [2024 年 10 月 29 日午前 12:02 UTC](https://meta.discourse.org/t/server-performance-issues-due-to-high-cpu-usage/333279/1 "2024-10-29T00:02:14Z")

</div>

ユーザーから、時折投稿やトピックの作成ができないという苦情を受けています。この問題はランダムに発生するようですが、サーバーの高CPU使用率に関連している可能性があります。

以下は、これらのスパイク発生時のCPU使用率を示す`htop`のスナップショットです。

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/5/9/f590eb38a2bc4baaec78166810773f4122fefec1.jpeg)

CPU使用率がスパイクするたびに、以下のコマンドが実行されていることに気づきました。  
`postgres:13/main: discourse discouse [local] UPDATE`

これは1時間ごと（おおよそ）に発生します。

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/c/8/4c831115d6a15f0e77257a989935adf6b8ecbb64.jpeg)

さらに、同じ時間帯にログが増加しているのが見られ、通常は高CPU使用率と一致します。

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/6/b/86bc456929ca22d9e8591247e39ce86195b27e93.jpeg)

これはサーバーのメモリまたはCPUの制限によるものでしょうか？診断や解決策について何かご存知の方がいらっしゃいましたら、ご協力いただけると幸いです。よろしくお願いします！

---

_[View the full topic](https://meta.discourse.org/t/server-performance-issues-due-to-high-cpu-usage/333279)._
