XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Forum
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      One more problem found causing some of the rnadom breakages here and there:

      There is one memory limit for the script: @raise_memory_limit('128M');

      And, when the number of messages in forum are high, if grows, and grows, and grows... and break somewhere (in the forum cron itself) or later, when the script requires memory over the limit.

      But the place were memory grows continuously is forum cron (just guessing if it's due to some cap/role/context cache) that, not having limits, causes this to happen. IMO, all those static caches, than can be executed from cron.... should have a limit.

      Call this the RAISE_MEMORY_LIMIT_PROBLEM from now.

      After HQ chat, we think the proper solution is to limit the role/context/cap caches to a number of elements (constant?). Each time the cache is full, first element will be removed and the new one inserted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody Nobody
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08