Hello,
I've recently upgraded from MediaWiki 1.19 to MediaWiki 1.20.3.
I'm getting PHP errors "Allowed memory size of ... bytes exhaused" on some pages with a lot of templates (in includes/parser/Preprocessor_DOM.php on line 1029).
I understand that it's perfectly normal, however with MediaWiki 1.19 I had my memory_limit set to 64M, and it worked perfectly; I've increased this value to 128M but some pages still fail to render (the same pages that rendered OK before the upgrade with only 64M).
Maybe there were some changes to parser or preprocessor, which could account for this? A memory leak somewhere.
The pages in question are about 200K of wiki code and produce 1-2Mb of HTML, however they contain some heavy templates with >10 parameters each (multiple invocations of en.wikipedia.org/wiki/Template:Chess_diagram).
I have a feeling that every template invocation is being kept in memory, even when this is not really needed. If this is the issue, this has to be optimized.
Version: 1.20.x
Severity: normal