Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    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 1.1k 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
      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
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy