Page MenuHomePhabricator

Increased "Allowed memory size exhausted" exceptions from MediaWiki since 2020-06-25 ~16:00
Closed, DuplicatePublic

Description

We see an increased amount of "Allowed memory size exhausted" exceptions from MediaWiki since 2020-06-25 ~16:00

Allowed memory size of 1468006400 bytes exhausted (tried to allocate 20480 bytes) in Grammar.php
Allowed memory size of 1468006400 bytes exhausted (tried to allocate 65536 bytes) in OutputHandler.php
[{exception_id}] {exception_url} PHP Fatal Error from line 7262 of /srv/mediawiki/php-1.35.0-wmf.38/vendor/wikimedia/parsoid/src/Wt2Html/Grammar.php: Allowed memory size of 1468006400 bytes exhausted (tried to allocate 20480 bytes)

See:

1.35.0-wmf.37 produced more exceptions as well, so that might not be directly related to 1.35.0-wmf.38.

@Krinkle could that be related to the logging changes? Some of the normalized messages seem kind of duplicate to me as well.

Event Timeline

Jdforrester-WMF added a subscriber: Jdforrester-WMF.

AIUI, previously all the memory-exhausted errors from Parsoid were hidden because they weren't classified as MediaWiki alerts, but now they're shown. Given they're not in mainline user requests, it might be a bit misleading, but no more than those from the jobrunners. We should probably think with the Parsing team (as service owner) about reducing the incidence of these errors, however.

ssastry added a subscriber: ssastry.

I merged this into the other task since, as @Jdforrester-WMF noted, this is a known issue. We also have T254508: Reconcile Parsoid memory usage w/ legacy parser and mediawiki core for this work.

Change 608708 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] profile::mediawiki::alerts: tune mediawiki-errors to be more lenient

https://gerrit.wikimedia.org/r/c/operations/puppet/ /608708

Change 608708 abandoned by Elukey:
[operations/puppet@production] profile::mediawiki::alerts: tune mediawiki-errors to be more lenient

Reason:

https://gerrit.wikimedia.org/r/608708