Announcement

Collapse
No announcement yet.

High CPU-usage (4.1.7.1)

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

  • High CPU-usage (4.1.7.1)

    Updated yesterday and now the plugin is using a lot of CPU. Server runs at 100%, mcsMQTT is causing 86% of this:
    Click image for larger version

Name:	F1FC3493-C650-4787-A1E0-B9F9ACCE2BFA.jpeg
Views:	97
Size:	136.4 KB
ID:	1327808

  • #2
    Restarted PI, goes straight to 70%...

    Comment


    • #3
      With 4.1.7.1 on my Odroid C2 I am seeing typically 0.5% CPU for mcsMQTT. This version added multiple Broker support so there may be a slight increase due to the generalization, but not expecting anything dramatic.

      Look at the Statistics tab to see what the average receive processing time is. Mine is 40 milliseconds. Max receive queue depth is 100.

      The debug may include some information to help characterize why your environment is resulting in high CPU.

      The prior version without multiple broker support is at http://mcsSprinklers.com/mcsMQTT_4_1_6_1.zip. Only HSPI_mcsMQTT.exe is needed from the zip.

      Comment


      • #4
        Running on HS3 3.0.0.534 (Linux) testing multiple Intel and ARM and AMD CPU's here - RAM from 2Gb to 32Gb.

        Newest testing hardware is:

        1 - Intel Beelink BT3 Pro - Intel Atom x5-Z8350, 4Gb RAM, 64Gb eMMC for OS, USB 3.0/2.0, Gb NIC, WiFi and Bluetooth - 10 watts
        2 - Intel BCM Skylake Motherboard - Intel Skylake i3 - 32Gb of RAM (updating Intel Haswell Motherboard).

        Same Mono version on all of them: Mono JIT compiler version 6.0.0.334 (tarball Thu Sep 12 21:34:14 UTC 2019)

        Here do not see much utilization using Homeseer Linux 64 bit on Intel CPU.

        Each new Intel box now is running Ubuntu 18.04 HS3, Docker, HA, Node Red, Mosquitto server, Apache server and Oracle Virtual box (Windows 7 embedded).

        Migrating slowly to Ubuntu 19.04.


        Click image for larger version  Name:	mcsMQTT.jpg Views:	0 Size:	27.3 KB ID:	1327877

        Here it is running on my TVBox (S912 8 core Arm CPU).

        Click image for larger version  Name:	TVBox.jpg Views:	0 Size:	79.2 KB ID:	1327878
        - Pete

        Auto mator
        Homeseer 3 Pro - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU - Mono 6.4X
        Homeseer Zee2 (Lite) - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.4X

        X10, UPB, Zigbee, ZWave and Wifi MQTT automation.

        Comment


        • #5
          Seems the problem is that it’s not able to connect to the broker. In statistics, it shows offline. Also noticed the username in settings was blank. Tried to re-enter the username, but it didn’t help.

          Running Mosquitto.

          I'll try to enable debugging and do some more testing.

          Comment


          • #6
            Originally posted by ZoRaC View Post
            Seems the problem is that it’s not able to connect to the broker. In statistics, it shows offline. Also noticed the username in settings was blank. Tried to re-enter the username, but it didn’t help.

            Running Mosquitto.

            I'll try to enable debugging and do some more testing.
            I'm having the same problem.
            RJ_Make On YouTube

            Comment


            • #7
              Just noticed here that I am still on version 4.1.5.0 of the plugin. New updated version is there under updates.
              - Pete

              Auto mator
              Homeseer 3 Pro - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU - Mono 6.4X
              Homeseer Zee2 (Lite) - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.4X

              X10, UPB, Zigbee, ZWave and Wifi MQTT automation.

              Comment


              • #8
                I messed up with the broker username for multiple brokers. It is fixed in http://mcsSprinklers/mcsMQTT_4_1_7_2.zip. Only HSPI_MCSMQTT.exe was updated in the zip.

                Comment


                • #9
                  4.1.7.2 seems to have solved it for me. Thanks!

                  Comment


                  • #10
                    Originally posted by ZoRaC View Post
                    4.1.7.2 seems to have solved it for me. Thanks!
                    Confirmed this fixed it for me as well.

                    Comment


                    • #11
                      When will 4.1.7.2 be available as I only see 4.1.7.1?
                      HomeSeer Version: HS3 Standard Edition 3.0.0.531 | Mono JIT compiler version 5.20.1.19 (tarball Thu Apr 11 09:02:17 UTC 2019)
                      Linux version: Linux auto 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
                      IP Address: 10.0.2.16 | Number of Devices: 417 | Number of Events: 667 | Available Threads: 399 | HSTouch Enabled: True

                      Enabled Plug-Ins: AirplaySpeak: 3.0.0.13 | BLBackup: 2.0.61.0 | EasyTrigger: 3.0.0.65 | LiftMaster MyQ: 1.3.7006.42100
                      mcsMQTT: 4.0.2.2 | PHLocation2: 3.0.0.53 | Pushover 3P: 0.0.0.45 | Z-Wave: 3.0.1.262

                      Z-Net version: 1.0.23 using a HomeSeer SmartStick+: 6.04 (ZDK 6.81.3)

                      Comment


                      • #12
                        I have never applied tor access to the Beta section of the Updater. I upload to the Updater at convenient times with consideration for the workload placed on HST to do the processing.

                        Typically mcsMQTT updates occur based upon user feedback and requests so most of the activity is working directly with those who made the request. Updates have been pretty frequent since the plugin was released. The latest information is at the sticky at the top of the forum and updater packages are at http://mcsSprinklers.com using convention of mcsMQTT_x_y_z_w.zip for the filename. Currently mcsMQTT_4_1_8_0.zip is the latest version available.

                        Comment

                        Working...
                        X