Topic on Project:Support desk

Understanding page lag

4
Backlitt (talkcontribs)

I run a small 4k page wiki. Pages in my template namespace frequently take a long time to load and I'm not sure why. Basic developer tools in-browser indicates its largely a rendering issue, but I'm not sure how to boil it down more than that. I've installed apc and have set:

$wgMainCacheType = CACHE_ACCEL;

$wgMemCachedServers = array();

$wgCacheDirectory = "$IP/cache"

How can I learn more about what is causing these problems?

I'm running:

Product Version
MediaWiki 1.35.2
PHP 7.4.18 (apache2handler)
MySQL 5.7.33-0ubuntu0.16.04.1-log
ICU 65.1
Lua 5.1.5
Elasticsearch 6.5.4
Bawolff (talkcontribs)

First off, check size of apcu.shm_size if its too small, could cause issues (normally you want somewhere between 32mb-256mb depending on size of site)

Follow instructions at Profiling to see what part is taking long

Backlitt (talkcontribs)

apcu.shm_size doesn't seem to be a problem (1 segment with 32 bytes; cache full count is always zero; never seen the used cache go above 10%).

Wasn't having luck with Tideways, but I did manage to get this return from wgProfiler on one of my problem pages (Template:ambox):

Backlitt (talkcontribs)

I did have $wgUseCategoryBrowser enabled, and disabled that. Basically the same sort of results.

Reply to "Understanding page lag"