Last modified: 2012-08-02 22:33:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40953, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38953 - --memory-limit switch not working for runJobs.php
--memory-limit switch not working for runJobs.php
Status: VERIFIED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-02 11:09 UTC by Niklas Laxström
Modified: 2012-08-02 22:33 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2012-08-02 11:09:52 UTC
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
Comment 1 Sam Reed (reedy) 2012-08-02 22:14:18 UTC
	public function memoryLimit() {
		// Don't eat all memory on the machine if we get a bad job.
		return "150M";
	}
Comment 2 Chad H. 2012-08-02 22:17:35 UTC
(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.
Comment 3 Sam Reed (reedy) 2012-08-02 22:19:37 UTC
(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 ;)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links