Announcement

Collapse
No announcement yet.

Tado plugin leaking memory in HS4 under linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tado plugin leaking memory in HS4 under linux

    Hi,

    I'm running HS4 Standard version 4.1.9.0 under linux on a raspberry pi. It seems that the Tado plugin is slowly leaking memory to the point where I have to restart the raspberry pi. See below dumps from "ps aux --sort=-%mem | head"

    Anyone else experiencing the same issues and have suggestions for a fix?

    I'm running raspbian buster and the following mono:
    Mono JIT compiler version 6.12.0.90 (tarball Fri Sep 4 14:21:54 UTC 2020)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS: __thread
    SIGSEGV: normal
    Notifications: epoll
    Architecture: armel,vfp+hard
    Disabled: none
    Misc: softdebug
    Interpreter: yes
    LLVM: yes(610)
    Suspend: preemptive
    GC: sgen (concurrent by default)

    After 4 Days 4 Hours 48 Minutes 13 Seconds since last restart:

    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 2638 0.6 27.4 1147200 1090388 ? Sl Nov23 37:33 /usr/bin/mono /usr/local/HomeSeer/HSPI_Tado.exe
    influxdb 695 8.0 14.8 1623616 589248 ? Ssl Nov23 485:11 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
    root 701 5.8 3.4 262200 135788 ? Ssl Nov23 352:58 /usr/bin/mono /usr/local/HomeSeer/HSConsole.exe --log
    root 2408 4.9 3.2 190444 127180 ? Sl Nov23 299:40 /usr/bin/mono /usr/local/HomeSeer/HSPI_ZWave.exe
    root 2454 1.3 2.0 161164 81180 ? Sl Nov23 81:42 /usr/bin/mono /usr/local/HomeSeer/HSPI_Sonos.exe
    root 2511 0.5 1.8 140204 74208 ? Sl Nov23 35:36 /usr/bin/mono /usr/local/HomeSeer/HSPI_MediaController.exe
    root 26763 2.3 1.8 125100 73620 ? Sl 10:38 0:18 /usr/bin/mono /usr/local/HomeSeer/HSPI_JowiHue.exe
    root 2553 0.4 1.8 130264 73168 ? Sl Nov23 26:41 /usr/bin/mono /usr/local/HomeSeer/HSPI_MCSMQTT.exe
    root 2603 0.6 1.6 116764 64088 ? Sl Nov23 39:01 /usr/bin/mono /usr/local/HomeSeer/HSPI_EasyTrigger.exe

    After a fresh reboot:

    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    influxdb 689 23.4 7.7 1622672 309436 ? Ssl 10:53 1:03 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
    root 684 19.3 2.7 232180 108700 ? Ssl 10:53 0:52 /usr/bin/mono /usr/local/HomeSeer/HSConsole.exe --log
    root 2620 6.4 2.7 173164 107868 ? Sl 10:54 0:14 /usr/bin/mono /usr/local/HomeSeer/HSPI_ZWave.exe
    root 2756 4.7 1.8 155204 74776 ? Sl 10:54 0:10 /usr/bin/mono /usr/local/HomeSeer/HSPI_Sonos.exe
    root 2863 4.9 1.8 129220 71584 ? Sl 10:54 0:10 /usr/bin/mono /usr/local/HomeSeer/HSPI_MCSMQTT.exe
    root 3019 5.8 1.7 121612 70100 ? Sl 10:54 0:11 /usr/bin/mono /usr/local/HomeSeer/HSPI_JowiHue.exe
    root 2986 9.7 1.6 118804 66124 ? Sl 10:54 0:19 /usr/bin/mono /usr/local/HomeSeer/HSPI_Tado.exe
    root 2822 3.5 1.5 121292 63248 ? Sl 10:54 0:07 /usr/bin/mono /usr/local/HomeSeer/HSPI_MediaController.exe
    root 2952 2.6 1.3 107100 55372 ? Sl 10:54 0:05 /usr/bin/mono /usr/local/HomeSeer/HSPI_EasyTrigger.exe


    Best regards,
    Joakim

    #2
    I have problems with WeatherXML. I wrote a script to kill plugin at 12:18 every night and let HS_Sentry restart the program.


    Here is the perl script I use

    Code:
    #!/usr/bin/perl -w
    use strict;
    
    chdir "/opt/HomeSeer/scripts";
    
    my $prog = `/bin/ps -eo pid,cmd | grep "[W]EATHERXML"`;
    
    #print "Process: $prog\n";
    
    my @pid = split(' ', $prog, 2);
    
    #print "pid: $pid[0]\n";
    
    $prog = "/bin/kill -9 $pid[0]";
    
    #print "program: $prog\n";
    
    system($prog);


    Click image for larger version  Name:	Screenshot from 2020-11-27 15-59-32.png Views:	0 Size:	59.3 KB ID:	1436594
    I chose the time when it would not be retrieving data.

    I also have problems with HSConsole. I wrote scripts to plot and show the memory usage for last 45 days.

    here is the plot: Click image for larger version

Name:	Screenshot from 2020-11-27 16-08-34.png
Views:	89
Size:	505.4 KB
ID:	1436597 I reboot the server twice a month. Hope this helps. I will share the scripts for plotting if you want them.

    Comment

    Working...
    X