Hi,
First post here, hoping I’m posting properly. I am running HA as Home Assistant OS installed in a VM through the official image.
The VM is running on a physical server that serves two VMs (HA and PiHole) and does nothing else. It’s a Xeon 4C4T @ 3,1 GHz with 32 GB of RAM. The HA VM has access to 80 % utilisation on all four cores and up to 20 GB of RAM. The server has a NIC teamed 2 Gb connection to a switch, my PC 1 Gb to its switch and our Internet, if it matters, is 70/70.
The HA instance is fairly small, as its so far mainly an experiment before our home extension. Theres a few Hue devices, a car integration, weather, some printers, etc. Nothing insane.
The issue is that while all of HA generally works very snappy, certain parts are very slow. I realise some of these are add-ons, but this also happened with certain native pages (e.g. the settings and in particular the info page), but an update significantly sped up those. It also seems to happen to a lesser degree (enough to notice, not enough to really wonder) for several native pages, for example logbookz histories and such.
But while lovelace dashboards load faster than I can collapse the menu again, particularly File Editor (2m45s), HACS (30s to a half loaded version but 1m30s before “Integrations”, “front end”, etc. appear) and especially NodeRed (4m45s) take a very long time to load, and it feels as if a large portion of the time is spent “just waiting for nothing”. NodeRed even seems to load the same files twice, not sure what that’s about or if it’s related.
I checked CPU, RAM and disk usage of both VM and host with nothing at all to report. And I checked various logs which seem to contain nothing of relevance. And everything does technically work, albeit rather slowly.
So I checked with Chrome’s developer tools, and it seems that in particular a file named entrypoint.cd79763.js is a common issue, often taking over a minute to download despite a ~1M file size.
Can anyone tell me, what this file does, or point me in a direction of what to look for that would cause a small subset of files to serve slowly on an otherwise fast server? Or maybe other steps to look at?
I found a bunch of topics on this general issue, but all with entrypoint had it missing entirely, and slowdowns seemed to be dominated by UAS issues with SSDs on Pis, but I’m using neither of those.
And especially after seeing in the waterfall view, that it’s only certain files that seem to cause the slowdown, I’m perplexed. I know the network is solid and stuff like RDP feels like being local on the machine, and network file transfer speeds indicate that the connection is indeed around the 1Gb mark.
I should add that this happens regardless of client device. My phone on WiFi with the android companion app will load just as slow as my desktop PC.
Anyone?
Nicolai