core: Client unable to keep up with pending messages
Read before posting
https://github.com/home-assistant/core/issues/95386
The problem
this error at log. Systemwasnt load too high cpu all the time about 15-25% and memory 30-40%
What version of Home Assistant Core has the issue?
2023.2.5 and newer
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Home Assistant WebSocket API
Link to integration documentation on our website
https://www.home-assistant.io/integrations/websocket_api
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:159
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 16:01:05 (2 occurrences)
Last logged: 22:04:18
[546291820880] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds. The system's load is too high or an integration is misbehaving
[547007151456] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds. The system's load is too high or an integration is misbehaving
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 44 (22 by maintainers)
Commits related to this issue
- Improve websocket throughput related issue #90281 — committed to home-assistant/core by bdraco a year ago
Same problem here. Problem arrived after upgrading to 2023.6
The device referred to is an iPad Mini 5.
Home Assistant 2023.6.2 Supervisor 2023.06.2 Operating System 10.2 Grensesnitt 20230608.0 – latest
And
Perhaps I should create a different PR, but starting 2023.6.0/2023.6.1, I’m seeing this error as well.
It seems I only get this error when a persistent notification is sent (showing up in the “Notifications” sidebar). I have a Windows Desktop Chrome, a few iOS Companion Apps, and an Android Lenovo FKB connected to HA.
I also have a problem with the Android/Lenovo Tablet, whereby at the UI, when I use the sidebar Notifications to clear the notifications, they are cleared/dismissed, but the sidebar continues to indicate I still have a notification (circle with number of notifications pending). This maybe because of this error. I don’t have this issue with the other browsers/companion app.
While its a generic error and we can never fix every instance of it on every device. These two PRs will improve the situation for mobile / narrow devices:
https://github.com/home-assistant/frontend/pull/16953 https://github.com/home-assistant/core/pull/94780
Understood. Yet already a few hours since I’ve disabled all persistent notifications and the issue has not returned neither on mobile nor on PC chrome browser. I’ll need some more time to collect the callgrind and py-spys.
callgrind.out.1682337757952494.txt
i added .txt because this file format isnt suported here