(Solved) CPU (and memory) raises now-and-then to 100%

Hi community of Home Assistant,

I’m new with HA, just using it for 2 weeks now, coming from Domoticz, so overwhelmed with al the component available in HA, everything is going well with implementing all of my stuff at home, but there is one issues which I cannot pinpoint.

Every now and then the CPU start to raise slowly to 100% (of one core, HA is not using more cores), there is not one specific moment I can think of when it starts, sometimes it start immediately after starting HA, sometimes after a few hours, see screenshot here https://imgur.com/a/Xpgsnr0 (note: 25% is one core, this VM has 4 cores)

The logs are already on debug mode, but nothing special in there, sometimes devices are unavailable for some reason, but can’t find a loop or anything, maybe there is but I cannot find it.

First I started with HA installed manually with pip, but since last weekend I’m using the latest Docker image ‘homeassistant/home-assistant’.

You can find my configuration.yaml here https://pastebin.com/kKSpFgqA

I’m running HA 0.85.1.

Does someone have any idea to fix this? or to debug this further? any input is welcome!

Kind regards,
Mart

Last evening and night it happend again, little bit more information now; the memory is also rising during the same raise of the CPU. Eventually its going to swap and then its game over until I restart HA. See extra screenshots at https://imgur.com/a/bVVFSEX

After knowing thats its not only the CPU but also the memory; I started to search for memory leaks. And I probably found my issue, it has to do with the Synology component and the HTTPS connection to the Synology backend, I switched is to HTTP and my issue seems to be gone.

Related topic:

And related Github issue from 2017