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

    PHP Fatal error: Allowed memory size exhausted in /usr/local/www/guiconfig.inc

    Scheduled Pinned Locked Moved webGUI
    9 Posts 2 Posters 1.0k 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.
    • nfld_republicN
      nfld_republic
      last edited by

      Hi Folks,

      For the last 3-4 days I am getting the following error:

      PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 94489533217 bytes) in /usr/local/www/guiconfig.inc on line 954
      

      The GUI remains functional but these errors are at a minimum annoying and I am concerned that there may be a larger issue.

      System info:
      23.01-RELEASE (amd64)
      Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz
      4 CPUs : 1 package(s) x 2 core(s) x 2 hardware threads
      8GB RAM
      AES-NI CPU Crypto: Yes (active)

      All recommended patches installed. Only using IPv4.

      Services running:

      • dhcpd
      • dpinger
      • miniupnpd
      • openvpn
      • pfb_filter
      • pimd
      • unbound
      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @nfld_republic
        last edited by

        That is this:

        $content .= '<h5>'. htmlspecialchars($alias['url']) .'</h5><ul><li>'. implode('</li><li>', $alias_addresses) .'</li></ul>';
        

        Are you loading some massively large alias? The PHP memory limit is set at 512 MB for non-ARM CPUs. You would seem to be 94 GB short, there. Can you break the alias up into multiple parts? Like, if you trying to load "all countries" make it a dozen smaller aliases and rules? But even that is not 94 GB. Perhaps some sort of error in the config file?

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        nfld_republicN 1 Reply Last reply Reply Quote 0
        • nfld_republicN
          nfld_republic @SteveITS
          last edited by

          @steveits I only have 18 total aliases. The largest have only 8 values...

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @nfld_republic
            last edited by

            @nfld_republic are they nested in a circular fashion maybe?

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            nfld_republicN 1 Reply Last reply Reply Quote 0
            • nfld_republicN
              nfld_republic @SteveITS
              last edited by nfld_republic

              @steveits No. They very simple with nesting.

              Nothing has changed for some time before the issue started a few days ago.

              S 1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @nfld_republic
                last edited by

                @nfld_republic What are you doing when you see the message?

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote ๐Ÿ‘ helpful posts!

                nfld_republicN 1 Reply Last reply Reply Quote 0
                • nfld_republicN
                  nfld_republic @SteveITS
                  last edited by

                  @steveits I am just in the dashboard. Sometimes I get the error when just looking at the screen - maybe it is the autoupdate?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @nfld_republic
                    last edited by

                    @nfld_republic I assume you meant, "without nesting," above. It kinda seems like it has to be the implode('</li><li>', $alias_addresses) code as that expands the entries into a string. Probably something on the dashboard is trying to show the alias and it's just looping forever. Possibly it's running in the background for a long time before you see the error? Not sure... I'd look for something in Diagnostics/Backup & Restore/Config History that changed.

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote ๐Ÿ‘ helpful posts!

                    nfld_republicN 1 Reply Last reply Reply Quote 0
                    • nfld_republicN
                      nfld_republic @SteveITS
                      last edited by

                      @steveits The problem seems to have been resolved but I am not sure why. I moved around and reconfigured a few of the widgets and rebooted late last night. (I swear it is harder to get "change management" approval at home than in an organisation of 7500 people ๐Ÿ˜‰ ) I no longer get the error.

                      Thus, it could have been (a) by moving around the widgets it "fixed" a corrupted configuration; or (b) there was something hanging around in memory/cached/etc. that rebooting cleared out.

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