-
Task
-
Resolution: Fixed
-
Major
-
3.7
-
MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-65839_master -
The evaluation process for the students at risk model in learn.moodle.net crashed with a "Killed" message. We got the following message in dmesg:
[8436702.743468] Memory cgroup out of memory: Kill process 22072 (php) score 1739 or sacrifice child
|
[8436702.750325] Killed process 22072 (php) total-vm:3214820kB, anon-rss:754752kB, file-rss:52732kB
|
The memory usage in learn.moodle.net is 256MB.
The API was designed keeping the memory usage in mind and there shouldn't be any leaks during the analysis process. The analysis process is designed so that the memory used during the analysis of each analysable element is isolated from the following analysed elements. However, when analysing a specific element we load into memory different stuff. For the students at risk model we load: the course (1), all the participants (N), all the context_user of the participants (N) and all the user_enrolments of the participants (N). N is around 6000. Considering PHP's variables overhead it is possible that massive courses like the ones in learn moodle could take more than 250MB of RAM.
For sites with massive courses the recommended approach was to bump the memory, because they would have to bump it anyway as many other pages in moodle (like the participants one for example) load all this stuff in memory. We need to check if we are missing something and monitor the memory while evaluating one of these large courses.
- will be (partly) resolved by
-
MDL-66234 Extra garbage collection for analytics
- Closed
- will help resolve
-
MDLSITE-5663 Enable Moodle analytics features in learn.moodle.org
- Resolved