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

    PHP Error - Allowed memory exhausted

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 918 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.
    • D
      damianhl
      last edited by

      Hello team!!!!

      I am beginner with pfsense
      I just see the following error in my pfsense:
      PHP ERROR: Type: 1, File: /usr/local/www/diag_command.php, Line: 186, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 66 bytes) @ 2022-07-26 02:38:42
      This was about 1 week ago and it seems that does not appears again. In dashboard, now, the memory appears with 11% used of 4 Gb.
      Any suggestion?

      Regards!
      Damián

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

        That error indicates something was run in Diag > Command Prompt that tried to generate a page and exhausted the memory available to php.
        However it also shows it failed trying to allocate only 66 bytes so it could be the system had already exhausted the total RAM.
        Check the historical memory usage in Status > Monitoring. Was is close to used?
        Do you see any SWAP usage? That's usually a sign something is using all the RAM.

        Steve

        D 1 Reply Last reply Reply Quote 1
        • D
          damianhl @stephenw10
          last edited by

          @stephenw10
          Thanks for your answer
          In the memory graphic are the lines are about the same for a week, almost no variations.
          I dont know how to ckeck the SWAP usage, sorry, how can I check this?

          Regards,
          Damián

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

            It's shown on the dashboard. It should always be zero for most installs.

            D 1 Reply Last reply Reply Quote 0
            • D
              damianhl @stephenw10
              last edited by

              @stephenw10 It is 0 now, idk when the error ocurred

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

                Just check to make sure it's not getting used after some time.

                D 1 Reply Last reply Reply Quote 0
                • D
                  damianhl @stephenw10
                  last edited by

                  @stephenw10 Ok, thanks!

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