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

    How to handle with big xml files and big posts

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 3 Posters 1.6k 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.
    • marcellocM
      marcelloc
      last edited by

      pfBlocker and upcoming postfix forwarder 2.3 can reach 128MB php limit very easy even on x64 instalation.

      The error in these cases are:

      Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 57753 bytes) in /etc/inc/config.lib.inc on line 122

      If I change memory limit on /etc/inc/config.inc I get "script tried to increase memory_limit alert".

      I found on http://forum.pfsense.org/index.php?topic=30378.0 that I can increase 'suhosin.memory_limit' value, but even after running /etc/rc.php_ini_setup and reboot I get same error.

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        How are you hitting that limit? Is there not some way it could be redesigned so it does not hit that limit?

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          Basically two situations:

          • user submit a very large list to pfblocker(not a big deal. Until now i saw it twice)

          • upcoming postfix 2.3 has a sql inserts/updates maillogs forward via xmlrpc and depending on update schedule , host down or mail volume, xml file size reach 40-60mb

          The xmlrpc sync was the best way I found to forward logs to another pfsense, so admins can search mail in only one box instead of looking on many pfsense smtp relays.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            I've tested gzcompress php function and xml sql sync data reduced about 04-09 times.

            I'll do more tests.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by

              Check-out the xmlreader.inc it is very fast and can guarantee fixed memory consumption if used properly.
              It is even faster than the parser used in pfSense and you can switch to it by a toggle.

              It is not used on 2.0 because there were some issue that iirc are fixed now.

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