MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MM is eating all memory and crash!

    Scheduled Pinned Locked Moved Troubleshooting
    18 Posts 5 Posters 9.5k Views 4 Watching
    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.
    • J Offline
      juergschwarz
      last edited by

      Now after two weeks, two different SD Cards and two totaly separated new installations i am at the end of my brain.

      Raspberry 2 B+ with latest stretch

      First i had to downgrade electron to 1.4.15 couse of high cpu usage (over 300%) and stocking seconds on screen in clock module. Like 21…25…35… till nothing anymore.

      Now i am checking my ram usage. With maybee 6 modules like
      clock
      weather
      weatherforecast
      MMM-cryptocurrency.git
      MMM-swisstransport.git
      MMM-pihole-stats.git

      my MM is running only 2 or 3 hours. After that my memory is less than 13% or apr. 100MB free i got the same problem as above.

      Now i check same problem with only 3 standard module. Since last 12h my memory decreased from 50% free to 28% now and counting down.

      What the hell can i do?

      J Mykle1M yawnsY 3 Replies Last reply Reply Quote 0
      • J Offline
        juergschwarz @juergschwarz
        last edited by

        Is anyone able to show me a list of used modules, memory and uptime ?

        1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @juergschwarz
          last edited by

          @juergschwarz said in MM is eating all memory and crash!:

          What the hell can i do?

          About three months ago most all of these concerns were addressed by me and a few other fantastic people. We did quite a bit of troubleshooting. You will certainly benefit from reading through this and taking the necessary steps:
          https://forum.magicmirror.builders/topic/4684/electron-cpu-usage

          Note:

          Most, if not all of the people involved, were using a Pi3.
          Some modules present a higher system load than others.

          Opinion:

          Use Jessie, not Stretch

          Create a working config
          How to add modules

          J Mykle1M 2 Replies Last reply Reply Quote 0
          • J Offline
            juergschwarz @Mykle1
            last edited by

            Now i changed to Raspberry 3. After 2h system crashed. 4MB memory left.

            This is my sylog

            Nov 9 22:03:06 raspi32 kernel: [ 5458.473560] Out of memory: Kill process 880 (electron) score 948 or sacrifice child
            Nov 9 22:03:06 raspi32 kernel: [ 5458.473695] Killed process 880 (electron) total-vm:981380kB, anon-rss:671832kB, file-rss:104kB, shmem-rss:7180kB
            Nov 9 22:05:58 raspi32 systemd[1]: Started Session c4 of user pi.

            This is not realy what i can use. I dont like to change to debian 8.

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @juergschwarz
              last edited by

              @juergschwarz said in MM is eating all memory and crash!:

              Now i changed to Raspberry 3. After 2h system crashed. 4MB memory left.

              A memory leak was discussed in the topic I recommended to you. Was that result with the default installation of MM or did you add other modules?

              This is not realy what i can use. I dont like to change to debian 8.

              Your choice, sir. Good luck :-)

              Create a working config
              How to add modules

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                juergschwarz @Mykle1
                last edited by juergschwarz

                @Mykle1 With Rasp 3 i checked again with this six modules on 1. thread. Whitch Raspi .iso do you guy use for MM? Maybee i should install all things manual instead of this automatic installation? Memory leak not possible couse of Raspi 2 was the same issue and 2 different SD Cards.

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @juergschwarz
                  last edited by

                  @juergschwarz

                  Question:

                  Did you read the topic I suggested to you? I’m curious

                  Create a working config
                  How to add modules

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    juergschwarz @Mykle1
                    last edited by

                    @Mykle1 Yes i read it. All of this suggestions i already checked out. If you tell me to test standard installation whitout any additional modules - what the hell do all this people building such modules when i only can use standard modules?

                    Dont misunderstand me. But i manage two root servers with kvm - lvm and aprox. 30 official domains and nearly 200 email accounts. Longest uptime was 772 days. Nobody can tell me a application with black background and some “only text foreground apps” should not be able to run more than 2 hours or not?

                    1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer
                      last edited by

                      @juergschwarz said in MM is eating all memory and crash!:

                      Yes i read it. All of this suggestions i already checked out.

                      Very good. You had the benefit of other people’s time and hard work. Imagine if you had to think of all those tests for yourself.

                      If you tell me to test standard installation whitout any additional modules - what the hell do all this people building such modules when i only can use standard modules?

                      Logically, that would be a starting point, to see if the issue arises before the addition of other modules. If the problem arises afterward, then you can attribute the cause to something that you added. If not, then the cause lies in the OS version, the MM version, or with the Pi itself, or the way it was prepared.

                      Dont misunderstand me. But i manage two root servers with kvm - lvm and aprox. 30 official domains and nearly 200 email accounts. Longest uptime was 772 days.

                      I could not be less impressed.

                      Nobody can tell me a application with black background and some “only text foreground apps” should not be able to run more than 2 hours or not?

                      Nobody is telling you anything. I thought you wanted help so I started where anyone would start, at the beginning. Instead of some small measure of gratitude, you started spewing your impotent anger at me.

                      I only have one more question for you.

                      With the impressive resume you have, why didn’t you just figure it out and fix it yourself? :-)

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 1
                      • cowboysdudeC Offline
                        cowboysdude Module Developer
                        last edited by

                        Nobody can tell me a application with black background and some “only text foreground apps” should not be able to run more than 2 hours or not?

                        You are in the minority … I have 3 running, without issues… 1 of them has been running a solid year without any issues what-so-ever.

                        With that being said being rude to someone trying to help you is not really a way to get help…

                        1 Reply Last reply Reply Quote 2
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy