Last modified: 2013-12-20 23:18:26 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 T58066, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56066 - Raise PHP memory limit for command line
Raise PHP memory limit for command line
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-23 20:36 UTC by Matthew Flaschen
Modified: 2013-12-20 23:18 UTC (History)
3 users (show)

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


Attachments

Description Matthew Flaschen 2013-10-23 20:36:59 UTC
The PHP memory limit for the command line is 50M, which comes from the default wgMemoryLimit, which is a lower bound ("MediaWiki will try to raise PHP's memory limit if it's below this amount").

That can be too low in some cases when a few extensions are loaded.

The command line limit is actually set to -1 in /etc/php5/cli/php.ini .  However, due to an issue with phpsh (https://github.com/facebook/phpsh/issues/49), that gets set to -2M, which MW then raises to 50M.

The solution is to set /etc/php5/cli.php.ini to something suitably high, specified in megabytes.  For comparison, the Apache php.ini have 128M.  It might also be good to set wgMemoryLimit to the same value, just so people don't get confused reading the setting files.
Comment 1 Matthew Flaschen 2013-12-20 23:18:26 UTC
Fixed in Ori's version of phpsh instead (https://github.com/atdt/phpsh/commit/8a47fac3aaa85b8e1c379a7af73eb6a0f908dc5b), which is now use for MediaWiki-Vagrant (done in https://gerrit.wikimedia.org/r/#/c/103049/).

So we can keep using -1 for the CLI memory limit.

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


Navigation
Links