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

cron job runs out of memory during forum_cron step

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2, 1.8
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      Debain 3.1, PHP 5.2, MySQL 5.0.32. Running as a VM under Windows 2003.
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      No email is being sent to subscribers on Forum updates. Review of all logs found no reported problems. Ran cron job from command line php and saw the following error. Able to reproduce at will.

      Reproduction
      Subscribe to forum for emails.
      Add topic and check immediate email.
      run job from command line.
      job hangs for a couple of minutes then gives the following error.

      ============
      Starting activity modules
      Processing module function assignment_cron ...done.
      Processing module function forum_cron ...Processing post 16
      Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 56098765 bytes) in /var/www/moodle/lib/textlib.class.php on line 228
      ====================

      One this error occurs can run cron again with no issues but it complete forum_cron without processing any emails. I am seeing no other issues with Moodle at this point.

        Attachments

        1. config.php
          1 kB
        2. phpinfo.doc
          363 kB

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              dcbriz Donald Brizendine
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Mar/07