-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Slowness with 100% CPU utilization #2889
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I can confirm @AyhamZz 's observations. For the past couple of days, Uptime is very, very slow. For example, when you open it, it takes up to a minute until the monitors are shown. I do have a recurring maintenance window. Yet, there were no issues when I set it up about 3-4 weeks ago. Must be a more recent version that causes the problems. I run Uptime as a Docker container on an Ubuntu 22.04 LTS VM. Since I am not really envolved on a technical level with your (great) project, @louislam , maybe you tell me how I can contribute to find and fix this bug. |
|
I will try that out, disabling maintenance windows. However, I have to admit that they are quite a useful feature. I just found that my local SQLite with all the history was about 2 GB, even though I only monitor the last 7 days with about 50 monitors. Seems to confirm your finding that "it will keep generating time slots endlessly". |
UPDATE: Disabling the maintenance windows works. Also: Whoever faces the same issue, maybe take a look at the kuma.db file. Some tables may need to be emptied. |
I saw the number of open tickets. Seems like a lot to do. Do you plan to fix this maintenance window issue? Btw: I bought a 5 Dollar sponsorship. Thanks for your effort. |
@webartifex It should be fixed in 1.21.0-beta.1, feel free to try if you don't mind to use a beta version. https://github.com/louislam/uptime-kuma/releases/tag/1.21.0-beta.1 |
Hi Louis, I really like your product. We have run into the same issues with CPU 100+ for the node command. I deleted the MX schedules and also upgraded to 1.21.2 Still having very slow or not loading UI. Adding or editing monitors is very very slow. we have about 3530 monitors running and I doubled the VM spec today to 32GB RAM and 8Vcpu's which did not make a differrence. DB size is 2234 MB |
update. Followed advise from AyhamZz export the backup file then import it again using overwrite. we lost our status pages but this fixed the issue and shrank the DB very low from 2GB |
Unfortunately, 3530 monitors right now is too many for Uptime Kuma. |
sorry that was meant to be 350 monitors. |
If other people run into these sorts of issues, you may be able to help by defining the environment variable |
Running uptime-kuma 1.21.3. Experiencing the same slowness on my instance with ~90 monitors, only ping, http and push monitor types. My db is 5 GB according to the UI and history was on 180 days. Changed it to 30 days but don't know when it will start removing old history? @j-f1 Tried adding your
|
🛡️ Security Policy
Description
No response
👟 Reproduction steps
I noticed a huge slowness on my Uptime Kuma monitor and noticed that the CPU utilization is 100%, after increasing the CPU cores it still hits 100%, check the following screenshots:
and found the following Docker logs
am using Ubuntu 22.04 LTS
with the following docker version
Uptime kuma is on the latest version and i tried restarting both docker and server
👀 Expected behavior
CPU utilization caused by "node" might be the main reason of the slowness.
😓 Actual Behavior
Slowness
🐻 Uptime-Kuma Version
1.20.2
💻 Operating System and Arch
Ubunto 22.04 LTS
🌐 Browser
Google Chrome Version 110.0.5481.178
🐋 Docker Version
20.10.12
🟩 NodeJS Version
No response
📝 Relevant log output
The text was updated successfully, but these errors were encountered: