Announcement

Collapse
No announcement yet.

Memory Leak

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Memory Leak

    Hi Guys

    been fighting with a memory leak for months. Installed Jon's plug-in a while ago and it reboots the server when memory gets critical.

    Attached is the handle activity (tab delimited and Pic) over last few days up until this afternoon's reboot

    The server starts off with 1400 handles and goes up continually to 13,000 before a reboot


    I'm running Win 7 Enterprise x64 with 3GB RAM BTW

    I'm on 2.5.0.52 with these plug-ins (all very recent)

    USB-UIRT Interface, BLUPS, HSTouch Server, HSTouch iPhone,
    HSTouch Server Unlimited, PowerTrigger, ZWave Thermostats, AC-RF2 Processor,
    UltraLog, BLStat, HSTouch Android, BLDSC,
    SONOSCONTROLLER

    Any ideas how to track down what's causing it?

    Thanks

    mark
    Attached Files
    Last edited by mark_anderson_us; June 1, 2012, 01:15 PM.
    ________________________

    Dell Zino HD - HSPRo 2.x
    HSTouch - iPhone 3GS, 4S, iPad2 and iPad 3, 3xKindle Fire (Wall mounted)
    2 x Brultech ECM1240 with UltraECM
    USB UIRT
    Cooper Aspire Z-Wave Switches
    WGL800 w ACRF2 and 3xDS10a (Sump Level/Activity sensing)
    HM ST812-2 Flood Sensor
    HSM100 - Motion Detector with Light and Temperature
    2GIG Thermostat
    BLDSC - Alarm Plug-in
    BLUPS
    UltraLog (SQL2008)
    Jon00 Plugins
    Host XR3 BT and Jon00 BT Proximity
    Global Cache IP2IR
    Foscam FI8918W

    #2
    I believe the only way to find the ultimate culprit is to try it one plugin at a time until you recreate the problem.

    Comment


      #3
      From experience, it could be a plugin or a script. The only solution is a process of elimination. Strip down to bare bones, then add one plugin at a time, restarting each time and watch the result. For your scripts, it ought to be easy to determine which absolutely couldn't be a problem, then add the rest a few at a time, keeping track at each restart.
      Real courage is not securing your Wi-Fi network.

      Comment


        #4
        I personally think it is the base HS pro install and plug-in api that is leaking threads.

        I went down to NO plugins and turned off all events except the jon00's perf mon and threads still rose at a similar rate to what you describe.

        To test it, create a VM and install the base HS in the VM, run the perf mon and watch it run.
        huggy_d1

        Automating made easy

        Comment


          #5
          Huggy,

          Did you downgrade?

          Personally here went back to V.44.
          - Pete

          Auto mator
          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

          Comment


            #6
            Same case here. Zero problems with 44. Nothing but trouble beyond that.
            Real courage is not securing your Wi-Fi network.

            Comment


              #7
              Here now testing with two boxes and two HS licenses distributing the "work" a bit....(testing).
              - Pete

              Auto mator
              Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
              Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
              HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

              HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
              HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

              X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

              Comment


                #8
                I too would suggest that the latest builds have a memory leak. I had terrible issues with 50+ builds so reverted back and the problem disappeared.
                Jon

                Comment


                  #9
                  Originally posted by jon00 View Post
                  I too would suggest that the latest builds have a memory leak. I had terrible issues with 50+ builds so reverted back and the problem disappeared.
                  I have seen memory (but not handle or thread) leaks in .52 intermittently.
                  HS Pro 3.0 | Linux Ubuntu 16.04 x64 virtualized under Proxmox (KVM)
                  Hardware: Z-NET - W800 Serial - Digi PortServer TS/8 and TS/16 serial to Ethernet - Insteon PLM - RFXCOM - X10 Wireless
                  Plugins: HSTouch iOS and Android, RFXCOM, BlueIris, BLLock, BLDSC, BLRF, Insteon PLM (MNSandler), Device History, Ecobee, BLRing, Kodi, UltraWeatherWU3
                  Second home: Zee S2 with Z-Wave, CT101 Z-Wave Thermostat, Aeotec Z-Wave microswitches, HSM200 occupancy sensor, Ecolink Z-Wave door sensors, STI Driveway Monitor interfaced to Zee S2 GPIO pins.

                  Comment


                    #10
                    Downgrading

                    Originally posted by Pete View Post
                    Huggy,

                    Did you downgrade?

                    Personally here went back to V.44.
                    I, too, have this memory leak problem with .52. Is there anything special to do, if I were to downgrade to .44?

                    Thanks.
                    "Living with technology means living in a [constant] state of flux." S. Higgenbotham, 2023
                    "Reboot and rejoice!" F. Pishotta, 1989

                    Comment


                      #11
                      Easiest way -

                      1 - Backup your entire HS directory.
                      2 - run the update

                      Simple plug n play downgrade.
                      - Pete

                      Auto mator
                      Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                      Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                      HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                      HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                      HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                      X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                      Comment


                        #12
                        Originally posted by Pete View Post
                        Easiest way -

                        1 - Backup your entire HS directory.
                        2 - run the update

                        Simple plug n play downgrade.
                        Thank you.
                        "Living with technology means living in a [constant] state of flux." S. Higgenbotham, 2023
                        "Reboot and rejoice!" F. Pishotta, 1989

                        Comment


                          #13
                          This morning noticed this and seeing no errors on any of the HSTouch clients: (I know this error is related to HSTouch server - it still took down HSPro)

                          6/1/2012 8:57:00 AM HSTouch Server Error in GetImage: Exception of type System.OutOfMemoryException was thrown.
                          6/1/2012 8:58:00 AM HSTouch Server Error in GetImage: Exception of type System.OutOfMemoryException was thrown.
                          6/1/2012 9:00:00 AM HSTouch Server Error in GetImage: Exception of type System.OutOfMemoryException was thrown.
                          6/1/2012 9:45:00 AM HSTouch Server Error in GetImage: Exception of type System.OutOfMemoryException was thrown.
                          6/1/2012 10:04:00 AM HSTouch Server Error in GetImage: Exception of type System.OutOfMemoryException was thrown.
                          I let it go until it rebooted itself. The errors are gone now and HS/HSTouch clients are running fine.
                          Attached Files
                          - Pete

                          Auto mator
                          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                          Comment


                            #14
                            Originally posted by Pete View Post
                            Easiest way -

                            1 - Backup your entire HS directory.
                            2 - run the update

                            Simple plug n play downgrade.
                            Will .49 work with .50 HSTouch server?
                            ________________________

                            Dell Zino HD - HSPRo 2.x
                            HSTouch - iPhone 3GS, 4S, iPad2 and iPad 3, 3xKindle Fire (Wall mounted)
                            2 x Brultech ECM1240 with UltraECM
                            USB UIRT
                            Cooper Aspire Z-Wave Switches
                            WGL800 w ACRF2 and 3xDS10a (Sump Level/Activity sensing)
                            HM ST812-2 Flood Sensor
                            HSM100 - Motion Detector with Light and Temperature
                            2GIG Thermostat
                            BLDSC - Alarm Plug-in
                            BLUPS
                            UltraLog (SQL2008)
                            Jon00 Plugins
                            Host XR3 BT and Jon00 BT Proximity
                            Global Cache IP2IR
                            Foscam FI8918W

                            Comment


                              #15
                              Was Handles not Threads

                              Sorry for misleading you all, that was handles not threads,

                              but threads seem to be growing at same rate (just smaller numbers)
                              ________________________

                              Dell Zino HD - HSPRo 2.x
                              HSTouch - iPhone 3GS, 4S, iPad2 and iPad 3, 3xKindle Fire (Wall mounted)
                              2 x Brultech ECM1240 with UltraECM
                              USB UIRT
                              Cooper Aspire Z-Wave Switches
                              WGL800 w ACRF2 and 3xDS10a (Sump Level/Activity sensing)
                              HM ST812-2 Flood Sensor
                              HSM100 - Motion Detector with Light and Temperature
                              2GIG Thermostat
                              BLDSC - Alarm Plug-in
                              BLUPS
                              UltraLog (SQL2008)
                              Jon00 Plugins
                              Host XR3 BT and Jon00 BT Proximity
                              Global Cache IP2IR
                              Foscam FI8918W

                              Comment

                              Working...
                              X