Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-8227

Memory overflow when lot of students and appointments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.1
    • Fix Version/s: None
    • Component/s: Module: Scheduler
    • Labels:
      None
    • Plugin Version:
      2019120300
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      Hi all

      We've encountering a problem editing a slot, if a huge amount of students are enrolled in the course and there are a lot of appointments.

      This is the PHP error message:

      PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /<MOODLEDIR>/lib/moodlelib.php on line 9423, referer: https://FQDN/mod/scheduler/view.php?id=<ID>
      PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /<MOODLEDIR>/lib/classes/session/handler.php on line 54, referer: https://FQDN/mod/scheduler/view.php?id=<ID>
      PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in Unknown on line 0, referer: https://FQDN/mod/scheduler/view.php?id=<ID>

      We've this setup which leads to this error:

      • memory_limit: 512M
      • students in course: 3206
      • appointments: 38 (max. 40)

      We could increase the PHP memory_limit but this is not the right solution. So we analzed the issue and can sumarry following:

      So we think, that we must solve this issue with AJAX calls, so that it will be similar to the `course` and `tags` sublcasses of the `autocomplete` element (https://docs.moodle.org/dev/lib/formslib.php_Form_Definition#autocomplete).

      What do you think?

       

        Attachments

          Activity

            People

            Assignee:
            bostelm Henning Bostelmann
            Reporter:
            pead Adrian Perez
            Participants:
            Component watchers:
            Valery Fremaux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: