AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
202 stars 51 forks source link

Memory Leak #278

Open Rahulsharma0810 opened 2 years ago

Rahulsharma0810 commented 2 years ago

I've installed 1.5.0-rc.12, however in the last few days homebridge crashed with OOM.

Below is the top dump before the crash.

top - 19:17:04 up  2:07,  0 users,  load average: 106.48, 91.89, 62.04
Tasks:  12 total,   2 running,  10 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.8 us, 46.9 sy,  0.0 ni,  0.0 id, 47.0 wa,  0.0 hi,  5.3 si,  0.0 st
MiB Mem :   5933.5 total,    106.4 free,   5348.8 used,    478.3 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.    355.3 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  23497 root      20   0 4131664   2.6g      0 D   1.6  45.0  55:56.13 homebridge: homebridge-tuya-lan
  23504 root      20   0  648268  30720      0 R   1.4   0.5   0:20.77 homebridge: homebridge-shell-switch
  23477 root      20   0   11.0g 142892      0 D   0.8   2.4   2:52.20 homebridge: homebridge-camera-ui
  23458 root      20   0   10.6g  46768      0 D   0.5   0.8   0:31.88 homebridge
  23483 root      20   0  913756  34232      0 D   0.5   0.6   0:23.25 homebridge: homebridge-tuya-ir
  23484 root      20   0  653836  36464      0 D   0.5   0.6   1:10.78 homebridge: @vectronic/homebridge-ping-hosts
  23490 root      20   0  942800  46736      0 R   0.5   0.8   0:26.72 homebridge: homebridge-lg-thinq
  23507 root      20   0  647744  29812      0 D   0.5   0.5   0:24.02 homebridge: homebridge-shell-switch
  23524 root      20   0  647696  29892      0 D   0.5   0.5   0:20.65 homebridge: homebridge-shell-switch
  23514 root      20   0  647836  30564      0 D   0.3   0.5   0:21.58 homebridge: homebridge-shell-switch
   5434 root      20   0     212     24      4 S   0.0   0.0   0:00.02 s6-supervise homebridge-log
   5435 root      20   0     212     20      4 S   0.0   0.0   0:00.00 s6-supervise homebridge

Monitoring shows.

image