• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Allowed memory size exhausted in hookmanager.class.php

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    6
    538
    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.
    • A
      abulhol
      last edited by

      We are running FOG 1.5.7 on several machines.

      Recently, we received an identical error on all instances at the same time:

      Rule: 31420 (level 5) -> 'PHP Fatal error.'
      Feb 28 14:38:53 myinstance FOGMulticastManager[1108]: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 134217736 bytes) in /var/www/fog/lib/fog/hookmanager.class.php on line 54
      

      which refers to this line:

      public function processEvent($event, $arguments = array())
      {
          $this->events[] = $event;
      

      We haven’t seen this error in relation with hookmanager before, and I have found nothing on it here in the forum.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @abulhol I have had a look at the code but we lack important information to know why this has happened. Let’s try to get to it. Did this happen only once so far or do you see this often? E.g. every time you run a multicast task? Has this server been running for a long time without restarting services or the whole server?

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • A
          abulhol
          last edited by

          We actually don’t run any multicast tasks at all.
          The error happens in seemingly regular intervals on every instance of FOG, about every 11 days.
          It also happens on an installation of FOG 1.5.5.
          We actually do start and stop Apache, DHCP and other services related to FOG from time to time, but the server (Ubuntu 18.04.4 LTS) itself is running continuously.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @abulhol said in Allowed memory size exhausted in hookmanager.class.php:

            Feb 28 14:38:53 myinstance FOGMulticastManager[1108]: PHP Fatal error:

            Do you see it happening with FOGMulticastManager always or does it happen with one of the other FOG… services as well? I guess it’s only that one because it has the lowest sleep time and will loop the most therefore.

            I’ll take a close look at this over the weekend.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            A 1 Reply Last reply Reply Quote 0
            • A
              abulhol @Sebastian Roth
              last edited by

              @Sebastian-Roth it only happens with FOGMulticastManager, and we see it in regular intervals of ~11 days as described.
              Thanks for investigating!

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Sebastian Roth

                @abulhol This issue should be fixed in latest dev-branch.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post

                200

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project