Wikipedia clone runs very slow

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Install php-apc.

-- Bryan (talk|commons)18:20, 1 April 2011

Thank you for replying to our post Bryan.

We installed php-apc, but this did not have any noticeable effect on the first time load speeds of our Wikipedia webpages.

Do you have any idea what could be causing our load speed to be so slow?

Thank You, TJ

66.253.205.13819:00, 2 April 2011

by any chance have you actually enabled it in LocalSettings.php with $wgMainCacheType?

75.137.144.17719:29, 2 April 2011
 

Check the tips in Manual:Performance_tuning

-- Bryan (talk|commons)19:57, 2 April 2011

Have you tried reducing the number of calls on the parser? For instance, if you have say 400 {{cite...}} templates on a Wikipedia page, it may take 30 seconds for the page to load because of all the #if's in the citation template.

Banaticus03:04, 4 April 2011
 

Thank you all for the responses.

We installed memcached and enabled it in LocalSettings.php, however there was no noticeable gain in load times. We then attempted to enable output caching according to the Performance_tuning page, but the webpages are not being cached either.

The settings we used in LocalSettings.php are the following:

$wgMainCacheType = CACHE_MEMCACHED; $wgParserCacheType = CACHE_MEMCACHED; $wgMessageCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array(); $wgSessionsInMemcached = true; $wgUseFileCache = true; $wgFileCacheDirectory = "/var/www/wikipedia/cache";

We created the cache directory with full read/write/execute (777) permissions for all users, so it should not be a permissions problem.

Thank You, TJ

66.253.205.13821:37, 6 April 2011

If $wgMemCachedServers is set to an empty array, I don't think memcached will end up actually being used.

Emufarmers(T|C)06:21, 8 April 2011

Thanks for responding Emufarmers.

We've changed out MediaWiki LocalSettings file as you suggested and added our server to the list of memcached servers:

$wgMemCachedServers = array("127.0.0.1:11211");

We then rebooted the server and tested to see if there was any noticeable changes.

Unfortunately, there was no noticeable change in load speeds. The web pages are being successfully cached in the cache directory, however it does not appear that they are being used when initially loading the websites (initial load takes up to 10 minutes).

Refreshing the pages is very fast, however it pales in comparison to the initial load time.

66.253.205.13823:38, 8 April 2011

You need an opcode cache, among other things. Look at Manual:Performance tuning and Manual:Cache more carefully.

Emufarmers(T|C)09:57, 9 April 2011
 
 
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox