Page MenuHomePhabricator

Some pages are timing out: Maximum execution time of 15 seconds exceeded in extensions/Translate/messagegroups/AggregateMessageGroup.php on line 171
Closed, ResolvedPublic

Description

Since we switched from HHVM to PHP, this has been happening frequently. Initially seen on API messagecollection for group=core-0-mostused, now also reported for https://translatewiki.net/w/i.php?title=Special%3ALanguageStats&x=D&language=ko&suppresscomplete=1

Event Timeline

Change 423705 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Optimize AggregateMessageGroup::getKeys

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

I cherry-picked and deployed the patch on translatewiki.net. createMessageIndex.php is now taking ~7 s and the URLs from the slowlog are now responding quickly.

Change 423705 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Optimize AggregateMessageGroup::getKeys

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

Nikerabbit moved this task from In Review to Done on the Language-2018-Apr-June board.

I am moving this directly to done, because I have been using this patch in translatewiki.net without issues.