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

Memory overflow when lot of students and appointments

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.9.1, 3.11.5
    • Module: Scheduler
    • None
    • 2019120300
    • MOODLE_311_STABLE, MOODLE_39_STABLE

      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?

       

        1. image.png
          32 kB
          Christine Cumming
        2. Screenshot 2024-02-29 at 15.30.07.png
          144 kB
          Matthias Opitz
        3. Screenshot 2024-02-29 at 15.34.22.png
          152 kB
          Matthias Opitz

            Votes:
            12 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.