Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBMQTT poor performance causing HA slowdowns #12117

Closed
nordlead2005 opened this issue Feb 1, 2018 · 2 comments
Closed

HBMQTT poor performance causing HA slowdowns #12117

nordlead2005 opened this issue Feb 1, 2018 · 2 comments

Comments

@nordlead2005
Copy link
Contributor

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.57.0 to 0.62.1

Python release (python3 --version):
3.5.2

Component/platform:
HBMQTT

Description of problem:
hass program will use excessive CPU and slowly increase CPU usage until it consumes 100% of a single core. This leads to ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting littering the log file and automations being delayed by 30 seconds or more.

Expected:
hass should use a reasonable amount of CPU.

Problem-relevant configuration.yaml entries and steps to reproduce:
https://github.com/nordlead2005/home-assistant-config/tree/0fb831ad87c77ff17663c039f4e524293835e8e3
Here is my config

  1. Use embedded mqtt broker
  2. Add mqtt components
  3. Wait??

Additional info:
image
As you can see in this CPU usage chart, a single core was pegged at 100% at the start, and a reset of hass caused it to drop, but you can see that it is trending upwards. hass was then restarted and again CPU use trended upwards. To debug the problem I decided to switch to Mosquitto and get duplicate setups running by sharing a single MQTT broker. You can see that I rebooted ~9:30 and the CPU usage stayed low from then on. I've been running for an additional day and CPU usage is still low in the single digits.

In the following photo you can see a day of Mosquitto and the CPU usage is low as expected. My server does more than run Home Assistant, so those spikes are probably caused by other programs, and hass is running and performing as expected.
image

@balloobbot
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

@balloobbot
Copy link

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍

@home-assistant home-assistant locked and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants