Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30503

Something causes PHP to use up all its memory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.2
    • Fix Version/s: None
    • Component/s: Course completion
    • Labels:
    • Environment:
      Linux moodle 2.6.32-5-amd64 #1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64 GNU/Linux
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      I really do not know what I can do to help you debug this. I looked at the code, but am not sure how to see what the data values are that is causing the script to just keep eating up memory. Please let me know what I can do to help fix this as it is pretty frustrating for the teacher.

      Show
      I really do not know what I can do to help you debug this. I looked at the code, but am not sure how to see what the data values are that is causing the script to just keep eating up memory. Please let me know what I can do to help fix this as it is pretty frustrating for the teacher.
    • Workaround:
      Hide

      none as I am almost out of memory on the server.

      Show
      none as I am almost out of memory on the server.
    • URL:
      moodle.nsd.org
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      I have increased memory from 128MB to 1024MB and still get this error. When I turn on debugging mode I get errors like so:

      Nov 28 14:35:46 moodle apache2: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 86 bytes) in /opt/app/moodle/lib/completion/data_object.php on line 303
      Nov 28 14:36:01 moodle apache2: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 74 bytes) in /opt/app/moodle/lib/completion/data_object.php on line 300
      Nov 28 14:36:16 moodle apache2: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 87 bytes) in /opt/app/moodle/lib/completion/completion_criteria.php on line 151
      Nov 28 14:38:30 moodle apache2: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 87 bytes) in /opt/app/moodle/lib/completion/completion_criteria.php on line 151
      Nov 28 14:38:51 moodle apache2: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 74 bytes) in /opt/app/moodle/lib/completion/data_object.php on line 300
      Nov 28 14:39:24 moodle apache2: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 87 bytes) in /opt/app/moodle/lib/completion/completion_criteria.php on line 151
      Nov 28 14:51:46 moodle apache2: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 81 bytes) in /opt/app/moodle/lib/completion/data_object.php on line 300

      We turned on course completion for the first time and have one teacher who is really using it so I suspect this is what is causing the problem as all other classes and teachers are fine.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: