-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Uptime Kuma unresponsive with High CPU after clearing events on a monitor #3248
Comments
What kind of storage do you use on your pi? |
This may be a duplicate of #2346 |
Runs off a micro SD card. The Pi is a great device to pair with Uptime for a easy monitoring solution... |
Any work arounds to throttle SQL queries? |
I wonder why the latest container is shipping with older Alpine and Node.js louislam/uptime-kuma:1.21.3-alpine is Alpine Linux v3.12 (reelased on 2020-05-29) with Node v16.13.1 installed. Node 16.20.0 is the latest v.16 released on 2023-03-29. Uptime Kuma supports Node v.18 (per the README in GitHub) |
Moved from louislam/uptime-kuma:1.21.3-alpine to louislam/uptime-kuma:1.21.3-debian Node is now 16.20.0 and the OS is more current. |
Running IO-Heavy Workloads of off slow micro SD cards is not recomended. The delete operation could delete hundreds of MB worth of data => I would expect there to be performance penalties.
Over in #2346 Nelson has noted that |
@bignay2000 |
Running on Raspberry Pi 4. Reduced the history from 180 days to 30 days. Performance is reasonable considering the Pi is running from an SD card. |
🛡️ Security Policy
Description
Clearing the Events on a http(s) monitor hangs Uptime Kuma for over a minute. Get a black page with only showing the Uptime Kuma banner & Logo.
👟 Reproduction steps
Run louislam/uptime-kuma:1.21.3-alpine container on Raspberry Pi 4
Create a HTTP(s) web type monitor
Run monitor for more than 180 days
Log into Uptime Kuma
Click on the monitor
Click Clear Data
Click Events
Refresh webpage
👀 Expected behavior
Clear Data -> Events should not hang the application.
I think their is a SQL query that is long running without a limit that takes up all the CPU.
Maybe delete 100 records at a time with a 1 second sleep between calls to SQL? Or limit the SQL transcaction to a single CPU Core.
😓 Actual Behavior
Raspberry Pi Load one minute Load Average jumps to 4.5
Errors are logged.
uptime
🐻 Uptime-Kuma Version
louislam/uptime-kuma:1.21.3-alpine
💻 Operating System and Arch
Docker on Raspbian
🌐 Browser
Google Chrome 114
🐋 Docker Version
Docker version 24.0.2, build cb74dfc
🟩 NodeJS Version
v16.13.1
📝 Relevant log output
The text was updated successfully, but these errors were encountered: