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

Display of site logs causes out of memory in big sites

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.4
    • 1.9.3
    • Libraries
    • None
    • moodle.org and any other site having, say, 100.000 users.
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Right now, when displaying the course/report/log there is one function in charge of calculating the selector form. it's the print_mnet_log_selector_form() function.

      One the fields in that selector form is list of users in the given course. For SITEID that list can cause memory problems, due to the number of records returned by the get_site_users() function (and potentially in courses by the get_course_users() ) function.

      The selector form includes code to prevent the list of users to be rendered if there are more than COURSE_MAX_USERS_PER_DROPDOWN (1000) users but that doesn't really helps in big sites because the program breaks before checking that.

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Petr Skoda Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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