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

  • amd64
    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)

  • 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.


Log in to reply