Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    What are your MM/Pi statistics?

    General Discussion
    3
    7
    98
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      keineAhnung123 last edited by keineAhnung123

      Hello,

      My MM is hanging in my bathroom since 3 days and im trying to optimize it right now.

      I had CPU problems but found out that MMM-DarkSkyForecast causes them so i disabled it.
      My Modules are updating rarely (API calls > 30 min) and dont have any big animations (only things like newsfeed article fading…) so CPU is no problem anymore.

      My stats are:

      • CPU: 0-5 %
      • Temperature: 40-45 °C (heatsinks installed and no closed case)
      • free RAM: 5-15 %

      with:
      Raspberry Pi 3b+
      MM 2.14.0

      pi@raspberrypi:~/MagicMirror $ npm ls | grep electron
      ├─┬ electron@8.5.3
      │ ├─┬ @electron/get@1.12.2
      │ ├─┬ electron-chromedriver@8.0.0
      │ │ ├─┬ electron-download@4.1.1
      │ │ │ ├── electron-to-chromium@1.3.606
      

      and MMM-NewPIR with ecoMode enabled (hides modules when no activity)

      Unbenannt.png
      Unbenannt2.png

      I read the well known thread electron cpu usage and my question is:

      Are my stats normal? CPU an temperature are fine but the free RAM is a little bit concerning, isnt it? Are the 7 electron processes normal? Which electron version do you use (the electron cpu usage- thread is 3 years old)?

      Thank you 🙂

      mumblebaj 1 Reply Last reply Reply Quote 0
      • mumblebaj
        mumblebaj Project Sponsor @keineAhnung123 last edited by

        @keineahnung123 I have been having the same issue. When RAM drops between 15 - 20% my mirror hangs so I have been disabling new modules I have added recently to see which ones are using up RAM. I have narrowed mine down to a few and have disabled them. I don’t know of a way to monitor the modules to see which ones use the most RAM. I usually hard boot, pull the plug, to get my mirror going again but I fear that may eventually damage my sd card.

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @mumblebaj last edited by

          @mumblebaj decent memory leak chasing doc.

          mm does a lot all the time, so its harder to focus…

          https://marmelab.com/blog/2018/04/03/how-to-track-and-fix-memory-leak-with-nodejs.html

          mumblebaj 1 Reply Last reply Reply Quote 0
          • mumblebaj
            mumblebaj Project Sponsor @sdetweil last edited by

            @sdetweil Thanks Sam. I will have a read through. I only started having memory issues when using modules from a certain developer. After removing those, my memory issues have gone away.

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @mumblebaj last edited by

              @mumblebaj i understand. i chased a ‘hang’ for over a year. all kinds of debugging. only when one.of my modules loaded. so its my fault…
              i went thru the code hundreds of times.

              finally got a good log, and it wasnt a hang, it was out of memory… back thru the code…

              sure enough, i saved a pointer to an image, then never freed it… and i had changed the code, so didnt even need it to begin with…

              mumblebaj 1 Reply Last reply Reply Quote 0
              • mumblebaj
                mumblebaj Project Sponsor @sdetweil last edited by

                @sdetweil I am looking at rewriting the one module that I know is hogging my memory.
                Hope you are getting better and hopefully heading home soon so you can get to your laptop again. All the best and good health.

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @mumblebaj last edited by

                  @mumblebaj thanks. makin progress…

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy