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

Display of site logs causes out of memory in big sites

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.4
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      moodle.org and any other site having, say, 100.000 users.
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stronk7 Eloy Lafuente (stronk7)
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Tester:
                Petr Skoda
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  28/Jan/09