Topic on Project:Support desk

New Mediawiki install slow

3
Summary by Kittencorn

Moving to Apache

Kittencorn (talkcontribs)

I installed Mediawiki on an internal IIS server, but the original page loads can easily be 10-15 seconds.


LocalSettings:

$wgCacheDirectory = "$IP\cache";

$wgFileCacheDirectory = "$IP\cache ";

$wgEnableSidebarCache = true;

$wgUseFileCache = true;

$wgShowIPinHeader = false;

$wgEnableParserCache = true;

$wgCachePages = true;

$wgMainCacheType = CACHE_ACCEL;

$wgMessageCacheType = CACHE_ACCEL;

$wgParserCacheType = CACHE_ACCEL;

$wgMemCachedServers = array();


$wgShowExceptionDetails = true;

$wgShowDBErrorBacktrace = true;

$wgDebugComments = true;

$wgDebugLogFile = 'C:\Windows\Temp\MediaWiki\debug-{$wgDBname}.log';

wfLoadExtension( 'WikiEditor' );

wfLoadExtension( 'PluggableAuth' );

wfLoadExtension( 'Auth_remoteuser' );

wfLoadExtension( 'LDAPAuthentication2' );

wfLoadExtension( 'LDAPAuthorization' );

wfLoadExtension( 'LDAPProvider' );

wfLoadExtension( 'LDAPUserInfo' );

wfLoadExtension( 'LDAPGroups' );


php.ini:


[PHP]

display_errors = On

log_errors = On

error_log = C:\Windows\Temp\MediaWiki\php.log

[WinCache]

extension = php_wincache.dll

wincache.fcenabled = 1

wincache.ucenabled = 1

wincache.fcachesize = 64

wincache.fcndetect = 1

wincache.maxfilesize = 256

wincache.chkinterval = 10

wincache.enablecli = 1

wincache.ucachesize = 8

wincache.scachesize = 8


[opcache]

zend_extension=php_opcache.dll

opcache.enable=1


Once the page is loaded first time, it can take less than a second to reload, but 'new' pages still take anywhere between 6-20 seconds to load.


Any ideas as to how I can improve this or what to look for?


Windows Server 2016

IIS 10.0

PHP 7.3

WinCache 2.0.0.8 7.3


Bawolff (talkcontribs)

so beyond caching, the next step would be to look at a profile of a page taking a long time to load. See Profiling for help on how to generate one. Post the profile here or in a pastebin. You could also try increasing wincache.ucachesize to 16 which might help or might do nothing.


Note: the majority of performance testing is done on apache+mysql+linux. Performance may be better on that platform (of course switching is not an option for most people)

Kittencorn (talkcontribs)

For the second time I have left it over night and come back to 500 Internal Error in the morning. I have every kind of logging on but there are no errors. I think I am going to need to move it to Linux.