ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    FreePBX Memory Usage

    Scheduled Pinned Locked Moved IT Discussion
    14 Posts 4 Posters 5.8k Views
    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.
    • StrongBadS
      StrongBad
      last edited by

      That's the htop view and it shows LWPs. Use top and you'll not see that. Nothing to worry about. That's how it should be.

      coliverC 1 Reply Last reply Reply Quote 0
      • StrongBadS
        StrongBad
        last edited by

        In Linux there are no "threads". Instead of a thread Linux uses a thing called a "Light Weight Process". When you use htop you get shown all of those LWPs instead of the full processes. So think of them as threads. Those are simply the "threads" associated with Asterisk. So you need a lot of them, every non-blocking action (like a call) will require at least one of them for itself.

        1 Reply Last reply Reply Quote 0
        • coliverC
          coliver @StrongBad
          last edited by

          @StrongBad said:

          That's the htop view and it shows LWPs. Use top and you'll not see that. Nothing to worry about. That's how it should be.

          Thanks, I learned something new today. I have never encountered the term LWP (Light weight processes, for people who don't want to look it up) before. That explains why it is using the same amount of RAM as the parent process. Now I just need to figure out why I am using 80% of the available RAM. Is there a way to see resource usage that isn't top of htop? top only shows ~15-20% usage whereas my hypervisor is showing a lot higher.

          1 Reply Last reply Reply Quote 0
          • StrongBadS
            StrongBad
            last edited by

            Use free -m to see your memory usage.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              http://www.sheepguardingllama.com/2008/02/linux-memory-monitoring/

              coliverC 1 Reply Last reply Reply Quote 0
              • coliverC
                coliver @scottalanmiller
                last edited by

                @scottalanmiller said:

                http://www.sheepguardingllama.com/2008/02/linux-memory-monitoring/

                Very informative. I will add that to my Linux bookmarks. Doesn't look like my memory subsystem is overloaded I am not swapping anything to disk. So it is probably a non-issue. Thanks.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Check your swap settings to see if swap is even possible. What does your "free -m" output look like? Does it have swap turned on?

                  coliverC 1 Reply Last reply Reply Quote 0
                  • coliverC
                    coliver @scottalanmiller
                    last edited by

                    @scottalanmiller said:

                    Check your swap settings to see if swap is even possible. What does your "free -m" output look like? Does it have swap turned on?

                    Here are the vmstat and free -m command results:
                    vmstat.png

                    freem.png

                    Looks like there is 766 MB available for swap, only 2 are being used right now.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      Yup, that looks healthy. If you want to reduce memory usage a little you can look at this...

                      http://www.scottalanmiller.com/linux/2012/09/02/improving-elastix-memory-usage/

                      NetworkNerdN 1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        You do seem to be using an awful lot of memory for a FreePBX install. You have way more than enough, but you are using more than you would expect.

                        coliverC 1 Reply Last reply Reply Quote 0
                        • coliverC
                          coliver @scottalanmiller
                          last edited by

                          @scottalanmiller said:

                          You do seem to be using an awful lot of memory for a FreePBX install. You have way more than enough, but you are using more than you would expect.

                          Yep, which why I was concerned. I do have FOP2 running, but that doesn't seem to be using anything really, it seems to be using ~335MB, although since people are using it not sure if I should modify the apache settings as per your previous link.

                          top.png

                          Here is my top output. It looks like the httpd processes are using a huge amount of memory, or rather it is claiming a huge amount it doesn't seem to be using a lot of it, if I understand the difference between virt and res correctly.

                          NetworkNerdN 1 Reply Last reply Reply Quote 0
                          • NetworkNerdN
                            NetworkNerd @scottalanmiller
                            last edited by

                            @scottalanmiller said:

                            Yup, that looks healthy. If you want to reduce memory usage a little you can look at this...

                            http://www.scottalanmiller.com/linux/2012/09/02/improving-elastix-memory-usage/

                            This is one of my go-to steps any time I roll out Elastix / FreePBX. It's a great help.

                            1 Reply Last reply Reply Quote 1
                            • NetworkNerdN
                              NetworkNerd @coliver
                              last edited by

                              @coliver said:

                              @scottalanmiller said:

                              You do seem to be using an awful lot of memory for a FreePBX install. You have way more than enough, but you are using more than you would expect.

                              Yep, which why I was concerned. I do have FOP2 running, but that doesn't seem to be using anything really, it seems to be using ~335MB, although since people are using it not sure if I should modify the apache settings as per your previous link.

                              top.png

                              Here is my top output. It looks like the httpd processes are using a huge amount of memory, or rather it is claiming a huge amount it doesn't seem to be using a lot of it, if I understand the difference between virt and res correctly.

                              Even with FOP2 running, applying Scott's article should not cause any problems with FOP2.

                              1 Reply Last reply Reply Quote 1
                              • 1 / 1
                              • First post
                                Last post