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

Add peak memory usage info for adhoc & scheduled tasks

XMLWordPrintable

    • MOODLE_500_STABLE
    • MDL-84301_main
    • Hide
      1. Go to Site administration > Server > Server > System paths
      2. Set the "Path to PHP CLI"
      3. Go to Site administration > Server > Tasks >  Scheduled tasks
      4. Click on "Run now" for the Task "Cleanup task for recent activity block"
      5. Verify it outputs the peak memory usage ( ... used XX MB peak memory)
      6. Go to Site administration > Server > Tasks >  Ad hoc tasks
      7. Click on "Run all" for the first task in the list
      8. Verify it outputs the peak memory usage ( ... used XX MB peak memory)
      Show
      Go to Site administration > Server > Server > System paths Set the "Path to PHP CLI" Go to Site administration > Server > Tasks >  Scheduled tasks Click on "Run now" for the Task "Cleanup task for recent activity block" Verify it outputs the peak memory usage ( ... used XX MB peak memory ) Go to Site administration > Server > Tasks >  Ad hoc tasks Click on "Run all" for the first task in the list Verify it outputs the peak memory usage ( ... used XX MB peak memory )
    • Hide

      Code verified against automated checks.

      Checked MDL-84301 using repository: https://github.com/praxisdigital/moodle

      More information about this report

      Built on: Wed Feb 26 08:56:24 AM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84301 using repository: https://github.com/praxisdigital/moodle main (0 errors / 0 warnings) [branch: MDL-84301_main | CI Job ] More information about this report Built on: Wed Feb 26 08:56:24 AM UTC 2025
    • Hide

      Launching automatic jobs for branch MDL-84301_main

      Built on: Wed Mar 26 01:49:38 UTC 2025

      Show
      Launching automatic jobs for branch MDL-84301 _main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18795/ PHPUnit (sqlsrv / complete) Built on: Wed Mar 26 01:49:38 UTC 2025

      Currently it's hard to debug memory usage of tasks, so I'd propose we add a peak memory usage info log like the current db queries used info text.

            frederikmillingpytlick Frederik Milling Pytlick
            frederikmillingpytlick Frederik Milling Pytlick
            Daniel Ziegenberg Daniel Ziegenberg
            David Woloszyn David Woloszyn
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 53 minutes
                53m

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