• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Mar 12, 2022, 1:40 AM

    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 B 2 Replies Last reply Mar 12, 2022, 2:46 AM Reply Quote 0
    • S
      SteveITS Galactic Empire @shinobi
      last edited by SteveITS Mar 12, 2022, 2:56 AM Mar 12, 2022, 2:46 AM

      @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
      • B
        bmeeks @shinobi
        last edited by bmeeks Mar 12, 2022, 3:14 AM Mar 12, 2022, 3:14 AM

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