• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    High Memory Usage, is this normal?

    scheduled pinned locked moved Troubleshooting
    14 posts 3 posters 3.5k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • jkandasaJ offline
      jkandasa @skywatch
      global:last-edited-by,

      @skywatch This is seems high.

      What type of gateway are you using? Are you running any script?

      one-reply-to-this-post last-reply-time reply quote 0
      • skywatchS offline
        skywatch
        global:last-edited-by, skywatch

        Using mysensors gateway 2.2.0 - NRF24L01+ attached directly to the pi.
        If I reboot the pi then memory is about 53%, but gradually climbs over time (memory hole?)....
        No scripts running as far as I know.
        UPDATE - MQTT is running for the rpi internal info (that's how I know about the memory use- 88% now).
        I also notice that the rpi-gpio node is shown as down, yet has recently been active. I have nothing using that yet, so maybe that is the problem (but I would have expected it to be up and running after install, no?).

        jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
        • jkandasaJ offline
          jkandasa @skywatch
          global:last-edited-by,

          @skywatch Can you check with top which uses more CPU?

          one-reply-to-this-post last-reply-time reply quote 0
          • skywatchS offline
            skywatch
            global:last-edited-by,

            Java is by far the winner in using the most cpu and the most memory... hope that helps...

            one-reply-to-this-post last-reply-time reply quote 0
            • T offline
              Tag MOD
              global:last-edited-by, Tag

              @skywatch

              same here.. see the top output below

              asks:  84 total,   2 running,  82 sleeping,   0 stopped,   0 zombie
              %Cpu(s):  3.2 us,  1.1 sy,  0.0 ni, 95.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
              KiB Mem:    506832 total,   484768 used,    22064 free,    23672 buffers
              KiB Swap:   131068 total,        0 used,   131068 free.   191584 cached Mem
              
                PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                             
              25421 root      20   0  289604 214600   4400 S  14.9 42.3 402:09.80 java                                                
                481 root      20   0   12568    996    792 S   1.0  0.2 310:10.60 mysgw         
              

              in my case I use an orangepi running armbian, the receiver also directly attached to the GPIO header. SInce i use mysgw as a deamon, the CPU usage is higher (therefor runs hotter), compared to an arduino with the sensor attached...

              But you are right java seems a bit memory hungry...

              Let me know if you need more info

              jkandasaJ topic:replies-to-this-post, 2 last-reply-time reply quote 0
              • jkandasaJ offline
                jkandasa @Tag
                global:last-edited-by,

                @skywatch Still are you facing this issue after followed this http://forum.mycontroller.org/topic/175/web-page-script-stopped-responding/6 ?

                one-reply-to-this-post last-reply-time reply quote 0
                • jkandasaJ offline
                  jkandasa @Tag
                  global:last-edited-by,

                  @Tag This is my RPI CPU usage, I use RPI minimal install and WiFI MySnesors gateway(two gateways)

                  0_1500628491530_image.png

                  T one-reply-to-this-post last-reply-time reply quote 0
                  • skywatchS offline
                    skywatch
                    global:last-edited-by,

                    I have had to reboot the pi today a few times but am now monitoring memory usage. So far it is rising steadily, but slowly. I will give it a few days and see how it goes.

                    one-reply-to-this-post last-reply-time reply quote 0
                    • T offline
                      Tag MOD @jkandasa
                      global:last-edited-by,

                      @jkandasa

                      I unfortunately cannot get the graph you show.....
                      did you get it from a script or from the myagent software?

                      jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
                      • skywatchS offline
                        skywatch
                        global:last-edited-by,

                        How do I add an image to a post here?

                        Also, what memory is mcagent reporting? Ram? Sdcard? I have an image screenshot that you might like to see!

                        one-reply-to-this-post last-reply-time reply quote 0
                        • jkandasaJ offline
                          jkandasa @Tag
                          global:last-edited-by,

                          @Tag Yes, I use MCAgent to report RPI internals.

                          @skywatch It is CPU of the RPI.

                          How do I add an image to a post here?

                          Just save the image on your local computer and do upload with upload icon when composing message on this forum.

                          one-reply-to-this-post last-reply-time reply quote 0
                          • skywatchS offline
                            skywatch
                            global:last-edited-by,

                            @jkandasa

                            @skywatch It is CPU of the RPI.

                            That doesn't make sense, memory is separate to CPU surely?

                            I can only upload images less then 512kb. At that level all detail is lost, can I send directly to your email?

                            jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
                            • jkandasaJ offline
                              jkandasa @skywatch
                              global:last-edited-by, jkandasa

                              @skywatch Yes, I put 512KB limit to avoid storage full. Yes please send to jkandasa at gmail dot com

                              one-reply-to-this-post last-reply-time reply quote 0
                              • first-post
                                last-post

                              0

                              online

                              644

                              users

                              532

                              topics

                              3.4k

                              posts
                              Copyright © 2015-2025 MyController.org | Contributors | Localization