Page MenuHomePhabricator

--memory-limit switch not working for runJobs.php
Closed, ResolvedPublic

Description

twn:/www/sandwiki/extensions/Translate (master)$ php ../../maintenance/runJobs.php --memory-limit 500M
2012-08-02 11:05:58 MessageIndexRebuildJob Main_Page STARTING

Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 2097169 bytes) in /www/sandwiki/extensions/Translate/utils/MessageIndex.php on line 208
twn:/www/sandwiki/extensions/Translate (master)$ php ../../maintenance/runJobs.php --memory-limit=max
2012-08-02 11:06:36 MessageIndexRebuildJob Main_Page STARTING

Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 2097169 bytes) in /www/sandwiki/extensions/Translate/utils/MessageIndex.php on line 208
twn:/www/sandwiki/extensions/Translate (master)$ php ../../maintenance/runJobs.php --memory-limit=max
2012-08-02 11:07:14 MessageIndexRebuildJob Main_Page STARTING

Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 2097169 bytes) in /www/sandwiki/extensions/Translate/utils/MessageIndex.php on line 208
twn:/www/sandwiki/extensions/Translate (master)$ php ../../maintenance/runJobs.php --memory-limit=20M
2012-08-02 11:07:33 MessageIndexRebuildJob Main_Page STARTING

Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 2097169 bytes) in /www/sandwiki/extensions/Translate/utils/MessageIndex.php on line 208
twn:/www/sandwiki/extensions/Translate (master)$ php ../../maintenance/runJobs.php --memory-limit=200
2012-08-02 11:08:00 MessageIndexRebuildJob Main_Page STARTING

Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 2097169 bytes) in /www/sandwiki/extensions/Translate/utils/MessageIndex.php on line 208
twn:/www/sandwiki/extensions/Translate (master)$ php ../../maintenance/runJobs.php --memory-limit 200
2012-08-02 11:08:18 MessageIndexRebuildJob Main_Page STARTING

Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 2097169 bytes) in /www/sandwiki/extensions/Translate/utils/MessageIndex.php on line 208


Version: 1.20.x
Severity: normal

Details

Reference
bz38953

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:51 AM
bzimport set Reference to bz38953.
bzimport added a subscriber: Unknown Object (MLST).

public function memoryLimit() {

		// Don't eat all memory on the machine if we get a bad job.
		return "150M";

}

(In reply to comment #1)

public function memoryLimit() {
    // Don't eat all memory on the machine if we get a bad job.
    return "150M";
}

It should probably only do that if memory-limit has not already been specified.

(In reply to comment #2)

(In reply to comment #1)

public function memoryLimit() {
    // Don't eat all memory on the machine if we get a bad job.
    return "150M";
}

It should probably only do that if memory-limit has not already been specified.

Which is what I was doing in https://gerrit.wikimedia.org/r/17473 ;)