• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 877 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.
  • N
    nfld_republic
    last edited by Apr 28, 2023, 10:49 AM

    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 Apr 28, 2023, 2:26 PM Reply Quote 0
    • S
      SteveITS Galactic Empire @nfld_republic
      last edited by Apr 28, 2023, 2:26 PM

      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!

      N 1 Reply Last reply Apr 28, 2023, 4:30 PM Reply Quote 0
      • N
        nfld_republic @SteveITS
        last edited by Apr 28, 2023, 4:30 PM

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

        S 1 Reply Last reply Apr 28, 2023, 6:16 PM Reply Quote 0
        • S
          SteveITS Galactic Empire @nfld_republic
          last edited by Apr 28, 2023, 6:16 PM

          @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!

          N 1 Reply Last reply Apr 28, 2023, 8:38 PM Reply Quote 0
          • N
            nfld_republic @SteveITS
            last edited by nfld_republic Apr 28, 2023, 8:39 PM Apr 28, 2023, 8:38 PM

            @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 Apr 28, 2023, 8:51 PM Reply Quote 0
            • S
              SteveITS Galactic Empire @nfld_republic
              last edited by Apr 28, 2023, 8:51 PM

              @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!

              N 1 Reply Last reply Apr 28, 2023, 8:53 PM Reply Quote 0
              • N
                nfld_republic @SteveITS
                last edited by Apr 28, 2023, 8:53 PM

                @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 Apr 28, 2023, 9:54 PM Reply Quote 0
                • S
                  SteveITS Galactic Empire @nfld_republic
                  last edited by Apr 28, 2023, 9:54 PM

                  @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!

                  N 1 Reply Last reply Apr 29, 2023, 1:01 PM Reply Quote 0
                  • N
                    nfld_republic @SteveITS
                    last edited by Apr 29, 2023, 1:01 PM

                    @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
                    9 out of 9
                    • First post
                      9/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received