Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] High CPU usage for Uptime-Kuma while using ping monitors #5568

Open
2 tasks done
n1084ky opened this issue Jan 23, 2025 · 9 comments
Open
2 tasks done

[v2] High CPU usage for Uptime-Kuma while using ping monitors #5568

n1084ky opened this issue Jan 23, 2025 · 9 comments
Labels
bug Something isn't working

Comments

@n1084ky
Copy link

n1084ky commented Jan 23, 2025

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Hello,

The CPU value for the uptime-kuma installed in docker is very high. The CPU value is always over 100% and the dashboard does not load or the monitored services do not appear. I am running about 60 monitors, a mixture of HTTP and PING.

Do you have any idea how I can fix this problem?

Image
Image

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

latest

💻 Operating System and Arch

ubuntu 22.04

🌐 Browser

chrome

🖥️ Deployment Environment

  • Runtime:
  • Database:
  • Filesystem used to store the database on:
  • number of monitors: 60
@n1084ky n1084ky added the help label Jan 23, 2025
@CommanderStorm
Copy link
Collaborator

@n1084ky
Copy link
Author

n1084ky commented Jan 24, 2025

i'm running v2 . I am not running the "real-browser" monitor. I noticed that when I used chromium, the cpu usage increased even more and I stopped using it. But now the cpu value is still very high and I usually can't use the dashboard.

@CommanderStorm CommanderStorm added bug Something isn't working and removed help labels Jan 24, 2025
@CommanderStorm
Copy link
Collaborator

CommanderStorm commented Jan 24, 2025

Okay, seems weird.
Lets fill in the blanks

  • Runtime?
  • Database?
  • Filesystem used to store the database on?
  • amount of ping monitors?
  • how often do the ping monitors ping?
  • What hardware are you running it on?

There has also been a report complaining about how CPU intensive ping is, so this might be related. Have not had the time/energy to investigate further

@n1084ky
Copy link
Author

n1084ky commented Jan 27, 2025

Runtime : Docker 24.0.7,
Database : SQLite
Filesystem used to store the database on : ext4
amount of ping monitors : 64
how often do the ping monitors ping : every 20 seconds
What hardware are you running it on : 24 vCPUs, 48GiB RAM

Image

@CommanderStorm
Copy link
Collaborator

CommanderStorm commented Jan 27, 2025

We should only be able to use 1 vCPU. (node => single threaded)
Is there really no relevant log entrys about what the system is struggling with?

@PikuZheng
Copy link

The dashboard often doesn't respond when using Chrome, but will load after some patience. I didn't notice CPU usage, but that has improved in 2.0beta

@fiveangle

This comment has been minimized.

@fiveangle

This comment has been minimized.

@CommanderStorm CommanderStorm changed the title High CPU usage for Uptime-Kuma [v2] High CPU usage for Uptime-Kuma while using ping monitors Jan 30, 2025
@CommanderStorm

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants