Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38189 META Backup/restore issues with large courses
  3. MDL-38191

Backup and restore should use large memory limit

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6
    • 2.3.4
    • Backup
    • MOODLE_23_STABLE
    • MOODLE_26_STABLE
    • MDL-38191-master
    • Hide

      1. Go to the Admin / Server / Performance page. Look at the available memory options. (You don't need to change it - the default 512M is enough for this test.)

      EXPECTED: On a 64-bit system, the options should include 3GB (3072M) and 4GB (4096M) options. On a 32-bit system, the options should only go up to 2GB (2048M).

      2. Use the large course creation tool from MDL-38197 to create a course of 'L' size. (This will take some time.)

      3. Go to the new course and go through the backup screens, accepting defaults in every case, as far as the 'Confirmation and review' screen.

      EXPECTED:

      • You are able to successfully reach the 'Confirmation and review' screen.
      • Note: The 'Confirmation and review' screen will show an error about backup filename and will show that you are not actually backing up all the activities, due to separate issue MDL-34491.

      (Note: Before this fix, the system fails with a memory error on the confirmation and review screen at this point.)

      Show
      1. Go to the Admin / Server / Performance page. Look at the available memory options. (You don't need to change it - the default 512M is enough for this test.) EXPECTED: On a 64-bit system, the options should include 3GB (3072M) and 4GB (4096M) options. On a 32-bit system, the options should only go up to 2GB (2048M). 2. Use the large course creation tool from MDL-38197 to create a course of 'L' size. (This will take some time.) 3. Go to the new course and go through the backup screens, accepting defaults in every case, as far as the 'Confirmation and review' screen. EXPECTED: You are able to successfully reach the 'Confirmation and review' screen. Note: The 'Confirmation and review' screen will show an error about backup filename and will show that you are not actually backing up all the activities, due to separate issue MDL-34491 . (Note: Before this fix, the system fails with a memory error on the confirmation and review screen at this point.)

      The backup and restore user interface should use the ‘extra memory limit’ in all scripts (including, but not only, when processing the actual backup - also when showing the list of activities).

      • The current system can sometimes run out of memory when displaying the forms that occur before the backup.

      More options should be added to the extra memory limit so that it can be set to 1GB, 2GB, 3GB, and 4GB.

      • The current extra memory limit options are not large enough for certain operations, including some backup/restores.
      • You can already set a larger value manually in config.php or in custom scripts, but it should be possible to do this using the normal admin interface.
      • Note: It might be desirable to restrict the larger options so that they only appear to users of 64-bit PHP.

            quen Sam Marshall
            quen Sam Marshall
            Russell Smith Russell Smith
            Sam Hemelryk Sam Hemelryk
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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