Topic on Project:Support desk

ResourceLoader is very slow on initial visit (low traffic wiki)

6
Subfader (talkcontribs)

On my private wikt (1 user) and on the company wiki the ResourceLoader takes ~4-5 seconds to load on the initial loading.

This is only on the first load after no traffic for a while, then browsing around is fast.

  • private wiki: MW 1.24.1, PHP 5.5.13 + Opcache
  • company wiki: MW 1.19, PHP 5.? + APC

How can this be avoided?

88.130.79.83 (talkcontribs)

Would be interesting to know, which parts exactly are slow. Is it the creation of CSS stylesheets? Or of scripts?

I guess this happens when the according part has been purged out of the cache and so needs to be recreated. I would guess increasing the cache lifetime should be a workaround.

Subfader (talkcontribs)
AKlapper (WMF) (talkcontribs)

You might get even better debug output when appending &debug=true (if there is already a question mark in the URL) or ?debug=true (if there is no previous question mark in the URL) to the URL.

Coachbyapp (talkcontribs)

I have exactly this same problem on my wiki - initial slow loading on first load of a page after an unspecified period of no activity. I was wondering was a solution ever found to this?

Ciencia Al Poder (talkcontribs)

That's probably your webserver unloading the application from memory when no request is made in the last XX minutes. Have you checked your server configuration?

Reply to "ResourceLoader is very slow on initial visit (low traffic wiki)"