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: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.3, 3.10.3
    • Fix Version/s: None
    • Component/s: Caching, Web Services
    • Labels:

      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

          Issue Links

            Activity

              People

              Assignee:
              nmagill Neill Magill
              Reporter:
              syxton Matthew Davidson
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: