Details
Description
I've been unable to verify if this problem persists in newer versions that 1.6.5 - but I should be able to soon ![]()
If a course has a large (but not ridiculous) number of quiz attempts (order of 1000 for a quiz with about 25 questions) backup and/or restore is severely compromised. It seems that building the XML for those attempts burns up crazy amounts of memory (we went up to half a gig before giving up). A similar problem is exhibited trying to restore the file - this has been verified as a problem in 1.8 STABLE.
IMHO, backup and restore shouldn't ever use that amount of memory, although I appreciate the solution will be complex.
Hi Howard,
the most important memory eater in backup and restore is, AFAIK, the zip and unzip libraries/executables. If you are using the internal ones... can you try with the external executables instead?
the numbers you expose above (1000 attempts with 25 questions each) doesn't sound really high. It makes, more or less, 25000 answers to be stored and, using 1K by answer (and that's an exaggerated measure) it's around 25MB only (far from the half a gig).
Can you confirm the zip/unzip thing? If the problem persists we can do further tests to see if something else is happening.
TIA and ciao