-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Web UI Hanging #3276
Comments
How many monitors do you have? What is their type? |
I am experiencing the same behavior. On initial load it seems very slow, but on subsequent loads it seems much faster. Running 96 monitors (each checking every minute). My database size is 2.3 GB. |
Have the same problem with the hanging user interface. After a container restart, the first time I use UptimeKuma, the monitors are loaded and displayed. But if I open a second window (No matter which browser or even other devices). The first page, however, continues to run without problems. If I refresh the complete page, everything is gone. Unfortunately there are not really any error messages. The only thing I see in the Docker log is the message: Maybe as a side information:
|
I'm having the same issue with 216 monitors. Sometimes they randomly display, but then when drilling down they disappear! Running as a container on Docker/Unraid. Version: 1.22.1 Has anyone managed to find a solution? |
I'm having the same issue. When I log in with a new browser, I only see the WEB UI, no data. monitoring : 716 monitors running |
Please retest with latest version 1.23 |
Note that this could be caused by #3515 which is not merged yet. |
I doubt that it is, given the reported mounitor-count and db-size:
@kevin-dunas and @ChrisLStark 's comments are likely not related to this issue and are likely fixed by the PR you linked. This might be solved by the call to optimise introduced in #3380 and released in |
I have the same issue. |
Read: with the lowered retention are you still having problems or not? |
@CommanderStorm if I understood your question correctly (not sure because of the typos) you are asking if I still have issues with lowered retention. I still do, but seems to happen less often. |
Why isn't this project utilizing Node worker threads? It's common for the UI to freeze when the thread is blocked by monitor processing, in addition to sqlite3. |
Which monitors are you using? The usual answer: We just are currently not, no good reason why. Just have not investigated this optimisation. |
Currently, we are monitoring 82 services, including ping, HTTP, DNS, MySQL, MariaDB, MongoDB, PostgreSQL, and others. It is taking more than 60s to load. I recently experimented with adding worker_threads, which significantly enhanced our performance. Could I contribute further to this area? |
Yes, sounds obviously interesting. (Duuh..) Problem is that migrating to the new, way more performant data shema of v2 is not currently done. I think if you configure a few hundreds/thousands of monitor @ 20s (see https://pypi.org/project/uptime-kuma-api/) ping and set up a local mock server to ping against you can create a good testcase/"benchmark" for this. |
Uptime Kuma is designed to be usable in a container with 256MB of memory. Since worker threads is basically a separate node.js instance with its own v8 heap, every thread will take up precious memory and interfere with the memory management of v8 (#3039). Of course there could be a dynamic scaling algorithm based on the available memory, but a lot more engineering effort is needed. Also, in my limited testing v2 running with an external database has not experienced any performance issues, which suggests to me that the current bottleneck is still on SQlite. |
I have been benchmarking why it is taking too many time to load and I found the Monitor.toJSON function. It’s very slow because it fetches lots of data recursively |
I met the issue, too. I found a way to resolve that temporarily.
Hope this can help you. |
You are right, we probably should have added a Tip If you are affected by the performance limits mentoned above in The solution boils down to having a lower amount of data => making Uptime Kuma less worried about reading those gigabytes of data.:
|
I#m experiencing the same on latest 1.x release in docker. I couldn't rly find a solution in this thread. The tip in the end here only seems to be for v 2.x because i don't have the settings folder in my docker drive. Only running 15 item tho |
|
Oh my bad 🙈 bad thing is I can't use anything anymore. Web UI IS completly frozen and useless. Even monitoring push messegaes are effected now. Getting some "is up again" but never got the "went down" :/ |
Is there a possibility to deactivate or limit the monitoring history? Actually, I have 900 monitors, and when there are only a few events registered, there isn't a problem with loading the page. If there are a lot of events during loading, the information Uptime crashes. |
@UllenBullen |
@olli991 First ensure that the system is offline, then run
A vacuum alone could solve your problem, you will have to check this. |
We are experiencing the same problem.
When accessing the web interface, it reloads at least 3 times before being able to do anything. |
🛡️ Security Policy
Description
Often (more often than not), the web UI hangs on initial load for me.
As you can see in the screenshot below, the websocket is open and data is flying in for monitors, so the browser is definitely connected to the server and there doesn't seem to be any noticeable issues with server connectivity.
Issue reproduces on Edge for Mac (114.0.1823.43), Firefox for Mac (112.0.1) and Safari for Mac (Version 16.5 (18615.2.9.11.4)).
When it DOES work, it's often very slow to initially load (10+ seconds before you see anything happening as monitors load).
I can also confirm that some push monitors experience latency/timeouts when calling UptimeKuma.
System: Proxmox LXC
Average CPU via htop shows fairly straightfoward, nothing too exciting:
👟 Reproduction steps
N/A really, just open the web page and observe.
👀 Expected behavior
Page loads as normal
😓 Actual Behavior
Page hangs and shows:
🐻 Uptime-Kuma Version
version : "1.21.3"
💻 Operating System and Arch
Debian 11 x64 via https://tteck.github.io/Proxmox/
🌐 Browser
Microsoft Edge Version 114.0.1823.43 (Official build) (arm64)
🐋 Docker Version
N/A - LXC
🟩 NodeJS Version
9.5.1
📝 Relevant log output
I don't see anything interesting in the logs output. Let me know what I can provide to assist.
The text was updated successfully, but these errors were encountered: