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

Accessibility toolkit potential memory limit bottleneck in processing on very large sites

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-73555_master_toolbrickfieldsummaryprocessing
    • Hide

      For this test you need your toolkit needs to be registered for the summarydata task to run correctly

      Setup (Before patch):

      1. Use ngrok for your moodle.
      2. Register account at https://account.mybrickfield.ie/
      3. Add your site at https://account.mybrickfield.ie/mysites
      4. Open https://MOODLE/admin/tool/brickfield/registration.php and fill API key and secret from the setup above

      Test:

      1. Put attached bulkadd.php in admin/tool/brickfield directory
      2. Run the script several times (5 should be more than enough)
      3. Run

        php admin/cli/scheduled_task.php --execute='\tool_brickfield\task\update_summarydata'
        

        Observe

        Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /home/ilyatregubov/moodles/stable_311/moodle/lib/dml/pgsql_native_moodle_database.php on line 990
        

      4. Apply patch and run the task again. Ensure that task runs successfully
      Show
      For this test you need your toolkit needs to be registered for the summarydata task to run correctly Setup (Before patch): Use ngrok for your moodle. Register account at https://account.mybrickfield.ie/ Add your site at https://account.mybrickfield.ie/mysites Open https://MOODLE/admin/tool/brickfield/registration.php and fill API key and secret from the setup above Test: Put attached bulkadd.php in admin/tool/brickfield directory Run the script several times (5 should be more than enough) Run php admin/cli/scheduled_task.php --execute= '\tool_brickfield\task\update_summarydata' Observe Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /home/ilyatregubov/moodles/stable_311/moodle/lib/dml/pgsql_native_moodle_database.php on line 990 Apply patch and run the task again. Ensure that task runs successfully

      In the event of extremely large numbers of content areas present on a site or with low memory limits on PHP, this can result in long processing times or fatal errors during the 'update_summarydata' task. This is a performance issue.

       

            bigmoodle Max Larkin
            bigmoodle Max Larkin
            Mike Churchward Mike Churchward
            Ilya Tregubov Ilya Tregubov
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 12 minutes
                7h 12m

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