Gradually increasing CPU utilisation


Recommended Posts



I have a strange problem with CPU utilisation gradually increasing over a period of many weeks to the point that I need to restart the server.  I'm running 6.1.4 on an old HP Microserver with 4 Dockers running:

- Duck DNS

- HomeAssistant

- TasmoAdmin

- Nginx (doing nothing but hosting a single static HTML page which I just use to store shortcuts to various devices on my internal network)


After a clean boot CPU utilisation averages about 7-8% but gradually this ramps up to >80% and I notice my HomeAssistant automations become slower and slower to react - things which normally happen almost instantly take several seconds.  After a reboot CPU drops back down and HomeAssistant performance is back to normal again.  It seems to take about 6 weeks to get to this point, but I can see CPU utilisation gradually increasing all the time.  I rebooted last night and after settling down CPU utilisation was:


At 11.30pm last night: System 5.5%, Nice 1.4%, User 1.8%

At 8am this morning: System 5.5%, Nice 1.4%, User 3.6%


That may not sound like a lot of increase but this is just over the course of ~8 hours (mostly idle) and happens continuously until the server runs out of puff!


How can I see what is causing this and is there a solution?


Many thanks,


Link to comment
  • 5 months later...

Resurrecting this topic just to follow up in case it helps anyone in the future.  I tracked down the problem to the built-in MQTT broker used by HomeAssistant.  I disabled this, and instead set up Mosquitto in another Docker container and the ever increasing CPU utilisation has stopped.


Hope that helps someone!


Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.