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

    Upgraded fine, to many states (100000+) causes a PHP memory error. Any ideas?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    2 Posts 2 Posters 902 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.
    • J Offline
      JGames
      last edited by

      amd64
      10.3-RELEASE
      FreeBSD 10.3-RELEASE #6 05adf0a(RELENG_2_3_0): Mon Apr 11 18:52:07 CDT 2016    root@ce23-amd64-builder:/builder/pfsense-230/tmp/obj/builder/pfsense-230/tmp/FreeBSD-src/sys/pfSense

      Crash report details:

      PHP Errors:
      [14-Apr-2016 10:28:42 America/Chicago] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /usr/local/www/diag_dump_states.php on line 241
      [14-Apr-2016 10:28:42 America/Chicago] PHP Stack trace:
      [14-Apr-2016 10:28:42 America/Chicago] PHP  1. {main}() /usr/local/www/diag_dump_states.php:0
      [14-Apr-2016 10:28:42 America/Chicago] PHP  2. pfSense_get_pf_states() /usr/local/www/diag_dump_states.php:241

      ![Screenshot from 2016-04-14 10:29:43.png](/public/imported_attachments/1/Screenshot from 2016-04-14 10:29:43.png)
      ![Screenshot from 2016-04-14 10:29:43.png_thumb](/public/imported_attachments/1/Screenshot from 2016-04-14 10:29:43.png_thumb)

      1 Reply Last reply Reply Quote 0
      • R Offline
        rsk
        last edited by

        I have the same underlying issue.

        This problem also affects the use of the /status_carp.php page. I have +100k states and using a CARP HA fw pair and get this error when using the CARP status page.

        As I needed the function to activate / deactivate CARP on this page I patched the file  /usr/local/www/status_carp.php and replaced $states = pfSense_get_pf_states(); with $states = 0; so the page loads but displays no states because of my workaround.

        René

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