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

Importing large number of questions result in memory_limit error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.5.8
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      Error when mporting a large question file (around 360MB):

      Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 67108872 bytes) in /var/www/html/question/format.php on line 615
      Call Stack

      1. Time Memory Function Location
        1 0.0093 404520 {main}( ) .../import.php:0
        2 1.0923 9727608 qformat_xml->importprocess( ) .../import.php:123
        3 5.4069 9711472 qformat_xml->readdata( ??? ) .../format.php:312
        4 7.0664 9711472 file ( ??? ) .../format.php:615

      The issue seem to be fixed for smaller question file:

      https://tracker.moodle.org/browse/MDL-50806

       

      It wonder if the memory_limit can be raised based on the file size (or configurable) for question import.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Nguyen Nathan Nguyen
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: