Server Performance Issues Due to High CPU Usage

I’ve received some complaints from users who occasionally can’t post or create topics. This issue seems to occur randomly, but it may be related to high CPU usage on the server.

Here’s a snapshot from htop showing the CPU usage during one of these spikes.

Each time the CPU usage spikes, I notice the following command running:
postgres:13/main: discourse discouse [local] UPDATE

This occurs every hour (more or less):

Additionally, we’re seeing an increase in logs around the same times, usually coinciding with high CPU usage.

Could this be a memory or CPU limitation on the server? If anyone has insights into diagnosing or resolving this, I would greatly appreciate your help. Thank you in advance!

1 Like

Update:
After upgrading the server, the issue seems to have been minimized.

However, the sames errors still occur every hour while the postgres:13/main: discourse discourse [local] UPDATE command is running, which corresponds to the spikes in the chart.

Does anyone have suggestions on what might be causing this and how to resolve it?

1 Like