Client exceeded max pending messages-> what is causing?

Since a day or so I do recieve this kind of messages:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:134
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 08:20:10 (1245 occurrences)
Last logged: 14:44:34

[140580924236000] Client exceeded max pending messages [2]: 2048

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:159
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 08:20:15 (683 occurrences)
Last logged: 14:44:39

[140580924236000] 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

How to find out causing this?

The logs is generally useless to pinpoint the cause of this warning/error.
I have found no other way than to make trial and error runs of the entire setup.

Thanks. for the answer. Hopefully they will increase debug level in the future

Read this issue comment: Client unable to keep up with pending messages · Issue #68030 · home-assistant/core · GitHub

What is your cpu use like?

Also, further down:

Watch the websocket output on the console in Chrome for event storms Inspect -> Network (reload the page and watch the websocket stream)

Thanks for the help.

I did restart my HA VM this morning.
Until now this message didn’t pop up anymore.
I will keep an eye on it

I did do an inspection and do find a lot of:
image
about every second. It is pointing to my HA IP adress

I see it happening but I do not know what that means

I’m running now a couple of days after restart the HA VM. Until now it is not happening anymore.
Looks like problem solved

Definitely not solved for me. This began after upgrading to 2023.7.1
I have tried to disable a lot of integration, one-by-one but to no avail so far.
Any additional advice on how to debug this is highly appreciated.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:51
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 7:17:04 AM (14 occurrences)
Last logged: 7:18:08 AM

[140207551890896] XXXXXXXXXX from 192.168.1.1 (Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.196 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 8.0.0; SM-G935F)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":7497,"type":"result","success":true,"result":null}
[140207553957840] XXXXXXXXXX from 192.168.1.1 (Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.196 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 8.0.0; SM-G935F)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":17874,"type":"event","event":{"type":"current","notifications":{}}}
[140207458602832] XXXXXXXXXX from 192.168.1.1 (Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.196 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 8.0.0; SM-G935F)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":8128,"type":"result","success":true,"result":null}
[140207548531856] XXXXXXXXXX from 192.168.1.1 (Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.196 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 8.0.0; SM-G935F)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":14241,"type":"result","success":true,"result":null}
[140207539474512] XXXXXXXXXX from 192.168.1.1 (Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.196 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 8.0.0; SM-G935F)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":19002,"type":"result","success":true,"result":null}

I have the same problem. I narrowed it down to ESPhome devices

I’m having similar issues, how did you manage to narrow it down to ESPhome?

I have reduced number of sensors in ESPhome as well as update_interval
I have 30+ smart sockets that measure power, when I reduced update period to 30s and removed a lot of measurements it become normal and usable

BUT, this is also AGAINST the idea of having the sensors that are useful - why do I need power showing every 30s? I would like every 3s.