[Mediawiki-l] Memory exhausted?!

Uwe Baumbach U.Baumbach at web.de
Tue May 1 18:58:15 UTC 2007

Hash: SHA1

Hi there,

running MW 1.9.3 on Debian Sarge and PHP 5.2.0 from time to time we get
a error message like this:

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to
allocate 7680 bytes) in
/data/wiki/wiki-commons/includes/SkinTemplate.php on line 44

At the beginning it was only at special pages like recent changes or
article search pages with a big amount of hits.
In the last time we get this message more often (but randomly), even on
"normal" pages  (from time to time).

We have some extensions and hooks and assume that there is "somewhere" a
programming weakness, that some memory could be allocated and not
released, or recursive procedures could allocate useless memory or so.

Now our questions:

1. How can we fix the place of the problem, e. g. is there a PHP
function to dump all allocated vars and consts in a dump file when such
an exception arises?
2. What amount of memory is reserved for one WP session/request? As you
can see we run with 20 Megs. We thought this would be a lot?!

- --


Uwe (Baumbach)
U.Baumbach at web.de

Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the MediaWiki-l mailing list