Page MenuHomePhabricator

Frequent "php out of memory" issue
Closed, InvalidPublic

Description

Author: ycombarnous

Description:
Windows 2003 server
Apache 2.2.4
PHP 5.2.0 (loaded as module, PHP memory_limit was set to 32M)
Mediawiki 1.9.0

We get very frequent out of memory messages, forcing us to restart Apache.

PHP Fatal error: Out of memory (allocated 9175040) (tried to allocate 1572864
bytes) in D:\\websites\\mediawiki\\languages\\messages\\MessagesEn.php on line
2106, referer: https://XXX/wiki/index.php?title=XXX&action=edit&section=11


Version: 1.9.x
Severity: normal
OS: Windows Server 2003
Platform: PC

Details

Reference
bz8899

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:34 PM
bzimport set Reference to bz8899.
bzimport added a subscriber: Unknown Object (MLST).

ycombarnous wrote:

PHP.ini file

My php.ini file.

Attached:

ycombarnous wrote:

My LocalSettings.php file

My LocalSettings.php file

Attached:

This matches the description of PHP bug 39438:

http://bugs.php.net/bug.php?id=39438

Please try downgrading to PHP 5.1.6, or upgrading to the current 5.2.x snapshot
from http://snaps.php.net/ .

ycombarnous wrote:

Ok, will try one of these and come back to you.
Thanks for the help,

Yann

ycombarnous wrote:

  • upgraded to PHP 5.2.1
  • upgraded to Mediawiki 1.9.2
  • disabled "Win32DisableAcceptEx" in Apache

Memory usage from Apache went from an average of 200MB to 30MB...
So it seems indeed there was some serious leakage in PHP 5.2.0, maybe worth
adding to the installation notes.

thanks for the help. Change resolution to "invalid", as this is not a mediawiki
issue.