Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

100% cpu load from bluepy-helper #269

@DefCon-CC

Description

@DefCon-CC

Describe the bug
After some after starting bt-mqtt-gateway I experience a huge cpu load from bluepy-helper. I bumped into it as I saw that the power consumption from my server increased from 10W to 26W. I'm using bluez version 5.63.

To Reproduce
Steps to reproduce the behavior:

  1. Start bt-mqtt-gateway by calling ./gateway.py
  2. After some time I experience a huge cpu load from bluepy-helper. (a few hours)

Expected behavior
Not such a high cpu load

Config

  • normal MQTT configuration
  • command_timeout: 45
  • command_retries: 0
  • update_retries: 0
  • workers: 5x lywsd03mmc devices (passive: false, scan_timeout:20, update_interval: 120)

Debug gateway logs
I will try to reproduce and print debug output here.

Server (please complete the following information):

  • OS: Linux
  • Distro: Redhat Enterprise Linux
  • Version 8.7

Additional context
2023-01-22 12_08_48-root@defcon3_~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions