ioBroker / ioBroker.hm-rega

Connects HomeMatic CCU "Logic Layer" ("ReGaHSS") to ioBroker
www.iobroker.org
MIT License
43 stars 15 forks source link

High memory usage when no connection to CCU2 possible? #532

Open zloe opened 4 days ago

zloe commented 4 days ago

Describe the bug I had turned off the CCU2 this led to a high RAM consumption of the iobroker process on my RaspberryPI. After tuning the CCU on again it also seemed that the constant polling of the adapter prevented the CCU to start fully.

To Reproduce Steps to reproduce the behavior:

  1. Turn of a connected CCU2
  2. Wait several minutes then ioBroker issued this warning: Your system has only 79 MB RAM left available and an additional adapter process is started. Please check your system, settings and active instances to prevent swapping and Out-Of-Memory situations! In "top" I see the hm-rega process using a lot of RAM (>400MB) and CPU (>100%)
  3. try to open the CCU Web page (not working, only blue window saying that the CCU is not ready yet)
  4. stop all hm-xxx adapters.
  5. CCU starts normal
  6. Adapters can be started again, ... memory usage is "normal" again

Expected behavior A unavailable CCU shall not cause high CPU and RAM load of the adapter. After a restart of the CCU it shall boot normal.

Screenshots & Logfiles image

Versions:

Additional context n/a

Apollon77 commented 2 days ago

Please setup history or such for the system.adapter.hm-rega.0.* like memRss and such so that you can visualize the memory consumption, potentially together with the connection status