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

    PHP ERROR: Type 1 - reoccurring alert

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 531 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.
    • S
      shinobi
      last edited by

      I have seen this alert & cleared it a few times. It seemed to pop up right around the Log4j debut.. so any log related error is causing me to 2nd glance it.
      Does this look like a legit "not enough memory" message, or maybe a buffer overrun.. ?

      PHP errors
      PHP ERROR: Type: 1, File: /usr/local/www/suricata/suricata_logs_browser.php, Line: 54, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 6336420904 bytes) @ 2022-03-12 01:20:08

      S bmeeksB 2 Replies Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @shinobi
        last edited by SteveITS

        @shinobi Ensure you have the log rotation and deletion settings enabled for Suricata.

        Also if your router has a slower CPU disable log compression in pfSense in the system log settings.

        aad19d63-736a-4819-9147-b28644c4dc55-image.png

        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!

        1 Reply Last reply Reply Quote 1
        • bmeeksB
          bmeeks @shinobi
          last edited by bmeeks

          @shinobi said in PHP ERROR: Type 1 - reoccurring alert:

          I have seen this alert & cleared it a few times. It seemed to pop up right around the Log4j debut.. so any log related error is causing me to 2nd glance it.
          Does this look like a legit "not enough memory" message, or maybe a buffer overrun.. ?

          PHP errors
          PHP ERROR: Type: 1, File: /usr/local/www/suricata/suricata_logs_browser.php, Line: 54, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 6336420904 bytes) @ 2022-03-12 01:20:08

          Your log file has grown too large to view using the PHP viewer applet. That code works by loading the entire log into RAM and then displaying it to the browser as one string. The PHP process in pfSense has a limited amount of RAM allocated for it, so if the log file is too big, that limited RAM is exhausted when trying to load the log.

          The solution, as @SteveITS said, is to turn on the log rotation options and set a much smaller log size for alerts.

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