• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.3k 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 Aug 20, 2008, 6:42 PM Aug 20, 2008, 1:19 PM

    i uploaded one blacklist from one website

    when i try to upload another one from another website i get

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

    is this because hard drive is full or memory (ram) is full

    if its the ram is there anyway to write the blacklist to the hd?

    1 Reply Last reply Reply Quote 0
    • D
      dvserg
      last edited by Aug 20, 2008, 4:49 PM Aug 20, 2008, 4:37 PM

      What you pfSense version ?  HDD/Ram size(free)?

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • U
        UnderCover
        last edited by Aug 20, 2008, 6:41 PM Aug 20, 2008, 6:32 PM

        Version 1.2.1-RC1
        built on Sun Aug 17 23:30:22 EDT 2008

        Memory usage      35%  total: 256mb
        SWAP usage      0%
        Disk usage     1%  total: 40gb

        1 Reply Last reply Reply Quote 0
        • U
          UnderCover
          last edited by Aug 20, 2008, 6:39 PM Aug 20, 2008, 6:35 PM

          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 Aug 20, 2008, 7:09 PM Aug 20, 2008, 6:58 PM

            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 Aug 20, 2008, 7:12 PM

              where is that file located

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by Aug 20, 2008, 7:25 PM

                /usr/local/pkg

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • U
                  UnderCover
                  last edited by Aug 20, 2008, 7:39 PM

                  @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 Aug 20, 2008, 7:44 PM

                    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 Aug 20, 2008, 7:55 PM

                      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 Aug 21, 2008, 1:23 PM

                        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 Aug 23, 2008, 2:59 PM

                          ditto. memory exhausted 1.2.1 (aug 20)

                          1 Reply Last reply Reply Quote 0
                          • D
                            dvserg
                            last edited by Aug 23, 2008, 6:35 PM

                            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 Aug 24, 2008, 2:36 AM

                              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 Aug 24, 2008, 7:43 AM Aug 24, 2008, 7:25 AM

                                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 Aug 25, 2008, 9:01 PM Aug 25, 2008, 8:43 PM

                                  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 Aug 25, 2008, 9:09 PM

                                    setting it to 50M worked
                                    for the urlblacklist.com

                                    1 Reply Last reply Reply Quote 0
                                    17 out of 17
                                    • First post
                                      17/17
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                      This community forum collects and processes your personal information.
                                      consent.not_received