Fatal error: Allowed memory size of 134217728 bytes exhausted

  • Hello,

    I try to upload a config.xml file and I get this error

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 48961718 bytes) in /usr/local/www/diag_backup.php on line 290

    I'm under a 64bit system and I tried to increase the "memory_limit" value under /etc/inc/config.inc but it continues to show this error.

    How can I solve this issue ?

    Thank's in advance,

  • This is probably not the solution but did you backup RRD data ?
    If yes - you can try to delete this data in your config.xml and then try a restore again.

  • How big is that config file? Even with RRD data and a large, complex config, configs shouldn't be that big.

  • Ok Pfsense Heroes,

    Maybe I'm wrong and you're gonna laugh at me …
    I have a big config.xml file, about 46MB.

    In fact I want to apply a guarateed bandwidth (or limitation) for each IP . My network is on

    So I generated my config.xml in order no enter by myslelf each rule.

    For example, each IP has it's own rule like that (and of course limitation depends on the IP)

    <tag><tagged><max><max-src-nodes><max-src-conn><max-src-states><statetimeout><statetype>keep state</statetype>



    Is there is a better way to do that ?

    Thank's in advance

  • Rebel Alliance Developer Netgate

    Just make the limiters with a mask - one with source mask, one with destination mask. That makes the limits act per IP instead of as a group.
    Then direct the entire /16 through that same pair of limiters.

    If you didn't mask them, odds are what you did there isn't actually doing what you want anyhow. If they all use the same limiter pair and that limiter pair isn't masked, they're all sharing the same "bucket" of bandwidth.

  • Thank's a lot :)

Log in to reply