Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    High RAM consumption

    Scheduled Pinned Locked Moved General pfSense Questions
    22 Posts 3 Posters 2.0k Views 5 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.
    • johnpozJ Offline
      johnpoz LAYER 8 Global Moderator @netermin
      last edited by

      can you sort your top output by RES, so we can see what is using the most, etc..

      Also - see my edit using the monitor graph you can look to see if its been creeping up, jumped up, etc. etc..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      neterminN 2 Replies Last reply Reply Quote 0
      • neterminN Offline
        netermin @johnpoz
        last edited by

        @johnpoz This is the most orderly way that the top friend allows me to do it.

        johnpozJ 1 Reply Last reply Reply Quote 0
        • neterminN Offline
          netermin @johnpoz
          last edited by

          @johnpoz the strange thing is that I restart it and it stays at 15% for a couple of days, but suddenly the memory increases to 80% and if you start to buy the processes on the top, they do not match with so many resources.

          1 Reply Last reply Reply Quote 0
          • johnpozJ Offline
            johnpoz LAYER 8 Global Moderator @netermin
            last edited by johnpoz

            in top press o for sort, then res and you will get it sort it in order of used mem

            example - here is mine

            sort.png

            you can see that pcscd is using most at 696M, and then radiusd at 107, then they go down in order.. You can see from yours that they are not in any order.

            yeah look at your graph.. you should be able to go way back and see, depending how long your pfsense has been installed, etc..

            For example here is mine going back until 2017.. Even though I have done clean installed, when restored it put data back, etc. At some point I have cleared all this, etc. clearly back in 2017 sometime ;) And recently have done clean installs when going to + and changing to zfs vs ufs. But you should be able to using that graph and different time frames see if slow creep or drastic jump, etc. and take a screenshot of what is using most memory via sort, and then look at it again when you notice very high, etc..

            2017.png

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            neterminN 1 Reply Last reply Reply Quote 0
            • neterminN Offline
              netermin @johnpoz
              last edited by

              @johnpoz Now it looks better friend

              memoria.png

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ Offline
                johnpoz LAYER 8 Global Moderator @netermin
                last edited by johnpoz

                See my edit about the monitor graph.. I don't see anything really jumping out using a lot, etc.

                did you just reboot?

                mine has been up for 20+ days..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                neterminN 1 Reply Last reply Reply Quote 0
                • neterminN Offline
                  netermin @johnpoz
                  last edited by

                  @johnpoz No, I have restarted , if I do it lowers the RAM, then after a few days it increases again, I really don't know what can be happening.

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ Offline
                    johnpoz LAYER 8 Global Moderator @netermin
                    last edited by johnpoz

                    Well now we have a screenshot of your top user processes.. And I would take a look at your monitor graph.. And then in a few days if up again like it is.. Look at your top sorted for res and see what jumps out to using more than it is right now, etc..

                    I have been running pfsense for years and years - and have never notice any sort this issue. Normally my pfsense runs 24/7/365 and only time it reboots is I upgrade it to new version, or significant power outage that ups can't last through. Which rarely ever happens.. The latest few updates have rebooted my pfsense more than it has in long time, 21.02, 21.02.1 and then 21.05.. I dont' see having to restart it again until 21.09 comes out - or they release something like 21.05.x

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    neterminN 1 Reply Last reply Reply Quote 0
                    • neterminN Offline
                      netermin @johnpoz
                      last edited by

                      @johnpoz Thanks for your answers friends, I will monitor it.

                      johnpozJ 1 Reply Last reply Reply Quote 0
                      • johnpozJ Offline
                        johnpoz LAYER 8 Global Moderator @netermin
                        last edited by

                        Let us know how it looks in a few days..

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        neterminN 1 Reply Last reply Reply Quote 0
                        • neterminN Offline
                          netermin @johnpoz
                          last edited by

                          @johnpoz Surely yes

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • johnpozJ Offline
                            johnpoz LAYER 8 Global Moderator @netermin
                            last edited by johnpoz

                            What version of pfsense are you running exactly? Also is there some specific reason you have Kernel PTI enabled? There really should be no case where that would really come into play with firewall.. While I would doubt it would cause what your seeing, I would next time your planning on rebooting that you disable it.. Unless you feel better with it enabled - but there will be some sort of performance impact with that enabled.. What that % is have no idea..

                            Personally I have mine disabled, as I don't see any point to it on my firewall box.

                            edit: Also a bit curious what is using up your disk space... You say you have no packages installed?

                            Your using 2% of 50G and and 10% of your var - Im at 3% of half your disk space, and 0% var..

                            disk.png

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            neterminN 1 Reply Last reply Reply Quote 0
                            • neterminN Offline
                              netermin @johnpoz
                              last edited by

                              @johnpoz I will disable it when I reboot, what was taking up space was the Snort log, which was installed but is no longer installed.

                              johnpozJ 1 Reply Last reply Reply Quote 0
                              • johnpozJ Offline
                                johnpoz LAYER 8 Global Moderator @netermin
                                last edited by johnpoz

                                @netermin said in High RAM consumption:

                                Snort log, which was installed but is no longer installed.

                                Had you rebooted since uninstalling that? Maybe that was what was sucking up your ram? Wild ass guess on my part there ;)

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.8, 24.11

                                neterminN 1 Reply Last reply Reply Quote 0
                                • neterminN Offline
                                  netermin @johnpoz
                                  last edited by

                                  @johnpoz I had not restarted it since I removed snort, I have other pfsense in other clients, it has lightsquid, bandwidthd, ntopng, netdata and the memory does not go above 18%, it is true that this one has 2.5.0-RELEASE (amd64 because I am using wireguard).

                                  johnpozJ 1 Reply Last reply Reply Quote 0
                                  • johnpozJ Offline
                                    johnpoz LAYER 8 Global Moderator @netermin
                                    last edited by

                                    Wireguard was removed ;)

                                    I have no experience with wireguard when it comes to memory usage.. And there were some issues with the wireguard - which is why it was removed.. I do believe there is some package to get it working on current 2.5.1 release? And sure at some point it will back as part of base install.

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                                    neterminN 2 Replies Last reply Reply Quote 0
                                    • neterminN Offline
                                      netermin @johnpoz
                                      last edited by

                                      @johnpoz Yes I know, I tell you what I have installed and the version I'm using and pfsense does not consume memory, compared to the other that has nothing installed and the memory does not go below 78%.

                                      1 Reply Last reply Reply Quote 0
                                      • neterminN Offline
                                        netermin @johnpoz
                                        last edited by

                                        @johnpoz Hi my friend, I have restarted pfsense and now the ram is at 7%, I will monitor it and let you know.

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          paulvijayji
                                          last edited by

                                          Thanks for your answers

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.