summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0f0f076)
* Right now we do it only if we are under apache, to
* make sure apache children that hog too much mem are
* killed.
* Right now we do it only if we are under apache, to
* make sure apache children that hog too much mem are
* killed.
*/
function moodle_request_shutdown() {
global $CFG;
*/
function moodle_request_shutdown() {
global $CFG;
&& function_exists('memory_get_usage')
&& ini_get_bool('child_terminate')) {
if (empty($CFG->apachemaxmem)) {
&& function_exists('memory_get_usage')
&& ini_get_bool('child_terminate')) {
if (empty($CFG->apachemaxmem)) {
- $CFG->apachemaxmem = 25000000; // default 25MiB
+ $CFG->apachemaxmem = 64*1024; // default 64MB
}
if (memory_get_usage() > (int)$CFG->apachemaxmem) {
trigger_error('Mem usage over $CFG->apachemaxmem: marking child for reaping.');
}
if (memory_get_usage() > (int)$CFG->apachemaxmem) {
trigger_error('Mem usage over $CFG->apachemaxmem: marking child for reaping.');