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

    Allowed memory size exhausted

    Scheduled Pinned Locked Moved General pfSense Questions
    19 Posts 7 Posters 9.9k 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.
    • GertjanG
      Gertjan @waterstorm
      last edited by

      @waterstorm said in Allowed memory size exhausted:

      Any idea why it starts growing the config file in one day this quickly?

      No-one can do that. We have no access to your files.

      You'll be needing text editor like Notepad++ - when installed, activate the Compare plugin.
      You'll be needing a SFTP client (FileZilla will do).

      Now, compare two version of the config.xml - these are just text files.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      W 1 Reply Last reply Reply Quote 0
      • W
        waterstorm @Gertjan
        last edited by waterstorm

        @Gertjan sure

        The <filter> part seems to be the issue.

        In the "small" config it's from line 293 - 1327
        While in the current version of the config the <filter> part is lines 298 - 1387151

        Some of the entries in the current config (if I search for a description) seem to be in the config 2048 times while they are only once in the small config.

        Any specifics I should look out for? Any idea why the filter part blew up that quickly and got somehow replicated in the config (at least it looks like it)?

        Thanks!

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Are you running pfBlocker with auto rule re-ordering enabled?

          We have seen that a few times though I'm not sure we found what triggers it:
          https://redmine.pfsense.org/issues/8811

          Steve

          W 1 Reply Last reply Reply Quote 1
          • W
            waterstorm @stephenw10
            last edited by waterstorm

            Yes I'm running pfBlockerNG.
            I was just checking the history and it is indeed created by pfBlockerNG. Thanks for pointing me in the right direction.

            This is interesting, because I have pfBlockerNG running forever and never had problems. However I did change something in pfBlockerNG lately. I needed whitelisting and therefore changed the "Rule Order" setting.

            db554612-5350-467b-bd97-047d01c0e8a3-image.png

            I just changed it back to the default to see if it fixes the issue. This was basically the only thing I changed in the settings of pfBlockerNG in the last year(s).
            I'll report back if it fixes things. Thanks again.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Yes, that's probably the cause. You will need to remove all the duplicated rules or role back the config to before that change.

              As @BBcan177 (the author of pfBlocker-ng) said in that bug report try the development version of the pfBlocker package if you can and report back.

              Steve

              W 1 Reply Last reply Reply Quote 0
              • W
                waterstorm @stephenw10
                last edited by

                @stephenw10 Thank you!

                I upgraded to the latest pfBlocker-ng-devel as recommended, so far everything works perfectly fine!

                1 Reply Last reply Reply Quote 1
                • K
                  Kleinmann
                  last edited by

                  I just encountered this on a netgate device, SG-1100 which has only 1GB of RAM. I am troubleshooting now, but after uninstall of pfBlockerNG the device would not boot. I have removed the device from the route in order to debug more. Planning on doing a factory reset, which I assume will let it boot.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    If you are able to reach the console menu and reset to factory defaults it will remove any spurious config, yes.

                    If you're able to reach single user mode you can mount the file system mount -a then copy the default config from /conf.default/config.xml to /conf/config.xml then reboot into it.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • K
                      Kleinmann
                      last edited by

                      The netgate device will not boot to any point where I can connect via LAN. the "console" port is a microUSB and does not work either. USB not recognized by systems. I will have to RMA the device.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Yes if you're unable to connect to the console port please open a ticket with us here: https://go.netgate.com

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • T
                          ttime
                          last edited by

                          I went into the files described and increased the memory with an editor, saved the changes and resolved my memory issue. Good Stuff here. Thanks

                          1 Reply Last reply Reply Quote 0
                          • PTZ-MP PTZ-M referenced this topic on
                          • PTZ-MP PTZ-M referenced this topic on
                          • S SteveITS referenced this topic on
                          • S SteveITS referenced this topic on
                          • S SteveITS referenced this topic on
                          • S SteveITS referenced this topic on
                          • S SteveITS referenced this topic on
                          • S SteveITS referenced this topic on
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.