[11-Apr-2021 15:28:10 UTC] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) in /srv/mediawiki/tags/2021-04-07_14:43:59/includes/libs/objectcache/utils/MemcachedClient.php on line 295 [11-Apr-2021 15:28:10 UTC] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) in /srv/mediawiki/tags/2021-04-07_14:43:59/includes/exception/MWExceptionHandler.php on line 302 [11-Apr-2021 16:11:31 UTC] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) in /srv/mediawiki/tags/2021-04-07_14:43:59/includes/libs/objectcache/utils/MemcachedClient.php on line 295 [11-Apr-2021 16:11:31 UTC] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) in /srv/mediawiki/tags/2021-04-07_14:43:59/includes/exception/MWExceptionHandler.php on line 302 [11-Apr-2021 16:11:31 UTC] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) in /srv/mediawiki/tags/2021-04-07_14:43:59/vendor/wikimedia/php-session-serializer/src/Wikimedia/PhpSessionSerializer.php on line 380 [12-Apr-2021 02:21:19 UTC] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) in /srv/mediawiki/tags/2021-04-07_14:43:59/includes/libs/objectcache/utils/MemcachedClient.php on line 295 [2021-04-12T02:21:19.638049+00:00] exception.ERROR: [5cec9597d1c95fe3544437e8] /wiki/Portal:Aln PHP Fatal Error from line 295 of /srv/mediawiki/tags/2021-04-07_14:43:59/includes/libs/objectcache/utils/MemcachedClient.php: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) {"exception":"[object] (ErrorException(code: 0): PHP Fatal Error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 20480 bytes) at /srv/mediawiki/tags/2021-04-07_14:43:59/includes/libs/objectcache/utils/MemcachedClient.php:295)
Since this seems to often happen in memcached, my guess is that perhaps the message cache has become too big. Some additional logging of keys and their sizes may help.
php-wmerrors simple trace:
MemcachedClient.php:295 MemcachedClient.php:1023 MemcachedClient.php:503 MemcachedPhpBagOStuff.php:65 MediumSpecificBagOStuff.php:287 MediumSpecificBagOStuff.php:267 WANObjectCache.php:901 WANObjectCache.php:1746 WANObjectCache.php:2725 MWCallableUpdate.php:38 DeferredUpdates.php:513 DeferredUpdates.php:390 DeferredUpdates.php:221 DeferredUpdatesScope.php:267 DeferredUpdatesScope.php:196 DeferredUpdates.php:242 MediaWiki.php:1062 MediaWiki.php:821 MediaWiki.php:833 MediaWiki.php:571 index.php:53 index.php:46