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

core_course_get_courses api function uses ALL the memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.3
    • Fix Version/s: None
    • Component/s: Caching, Web Services
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      We are running an integration that requires a webservice with access to the core_course_get_courses function.  Our site has ~8000 courses in the database.  We are receiving the following error.

       

      PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 1052672 bytes) in /var/www/moodle/cache/stores/file/lib.php on line 368" while reading response header from upstream

       

      We have increased the PHP memory to 24GB and still it exhausts the memory.  What can be done?

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: