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

    Squidguard memory exhausted

    Scheduled Pinned Locked Moved pfSense Packages
    17 Posts 3 Posters 7.4k 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.
    • U
      UnderCover
      last edited by

      i tried this blacklist

      http://www.shallalist.de/Downloads/shallalist.tar.gz

      Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 9111760 bytes) in /usr/local/pkg/squidguard_configurator.inc on line 1651

      also tried this one

      http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist

      Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 6744 bytes) in /usr/local/pkg/squidguard_configurator.inc on line 1651

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        squidguard_configurator.inc must contains after require section [ln 53..]:

        /* Allow additional execution time 0 = no limit. */
        ini_set('max_execution_time', '3600');
        ini_set('max_input_time', '3600');

        http://forum.pfsense.org/index.php/topic,10586.msg59172.html#msg59172

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • U
          UnderCover
          last edited by

          where is that file located

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by

            /usr/local/pkg

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • U
              UnderCover
              last edited by

              @dvserg:

              squidguard_configurator.inc must contains after require section [ln 53..]:

              /* Allow additional execution time 0 = no limit. */
              ini_set('max_execution_time', '3600');
              ini_set('max_input_time', '3600');

              http://forum.pfsense.org/index.php/topic,10586.msg59172.html#msg59172

              i see the values, should i change them to 0?

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by

                For begin - add this lines and test.

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • U
                  UnderCover
                  last edited by

                  ok i tried

                  SquidGuard was just fixed.  Please reinstall.

                  Iperf will be fixed on the next snapshot.

                  in temrs of ntop, I would suggest doing this from a shell:

                  rm -rf /var/db/pkg/*

                  Diagnostics -> Backup/Restore -> Reinstall all packages

                  it still says the same error when i try uploading the file

                  Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 9111760 bytes) in /usr/local/pkg/squidguard_configurator.inc on line 1603

                  1 Reply Last reply Reply Quote 0
                  • U
                    UnderCover
                    last edited by

                    i also tried changing those two files to 0

                    and it reports the same error

                    1 Reply Last reply Reply Quote 0
                    • T
                      tester_02
                      last edited by

                      ditto. memory exhausted 1.2.1 (aug 20)

                      1 Reply Last reply Reply Quote 0
                      • D
                        dvserg
                        last edited by

                        Hm. I test 1.2.1 success. You have latest SG update? As temporary possible upload blacklist manually to /tmp dir and update SG from /tmp/myblacklistexample.tar.gz

                        SquidGuardDoc EN  RU Tutorial
                        Localization ru_PFSense

                        1 Reply Last reply Reply Quote 0
                        • T
                          tester_02
                          last edited by

                          The problem seems to be the actual blacklist…
                          http://squidguard.mesd.k12.or.us/blacklists.tgz  blacklist works.
                          http://www.shallalist.de/Downloads/shallalist.tar.gz  blacklist crashes with the memory error. 
                          So the problem seems to be the size of the blacklist.  I was originally only trying out the 2nd one as that is what most people seem to recommend.
                          The it does work, just seems to have problems with the larger lists?

                          Tried reinstalling with the latest packages available on 1.2.1 and no changes to this problem.

                          1 Reply Last reply Reply Quote 0
                          • D
                            dvserg
                            last edited by

                            Probably this php settings problem ..
                            Anybody pls test with setting
                            ini_set('memory_limit', '24M');

                            SquidGuardDoc EN  RU Tutorial
                            Localization ru_PFSense

                            1 Reply Last reply Reply Quote 0
                            • U
                              UnderCover
                              last edited by

                              i added that line after

                              
                              /* Allow additional execution time 0 = no limit. */
                              ini_set('max_execution_time', '3600');
                              ini_set('max_input_time', '3600');
                              
                              

                              worked perfectly THX

                              edited:

                              http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist

                              gives this error

                              Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 16636786 bytes) in /usr/local/pkg/squidguard_configurator.inc on line 1604

                              i am going to try to change the line

                              ini_set('memory_limit', '24M');

                              to

                              ini_set('memory_limit', '50M');

                              1 Reply Last reply Reply Quote 0
                              • U
                                UnderCover
                                last edited by

                                setting it to 50M worked
                                for the urlblacklist.com

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