[Mediawiki-l] Performance problem with custom skin

Vinh-An Trinh admin at zerointech.com
Sat Nov 26 05:50:58 UTC 2005


Hi,

I'm seeing some weird performance problem with a custom skin.  I didn't
write the skin myself, I got it on the Internet and modified it to my
uses.

The performance is ok when using the default monobook skin.  My
performance test consist of clicking on the links of the web page
repeatedly.  With monobook the web site is pretty responsive, pages
come back under a second.

However with the custom skin, the pages take about 2-3 seconds to
render.

I tried putting Squid in front of it but performance is still poor.  I
tried analyzing the logs, and my only clue is that the custom skins
invokes index.php a lot more than monobook.  I don't think the
performance lies in the custom skin, however if you need it I'll email
it.

Here are the logs when I click 'Main Page' (my website replaced with
'foo.com')

Using Monobook:
Squid Log
1132982593.469   1137 69.203.108.130 TCP_MISS/304 412 GET
http://www.foo.com/w/index.php/Main_Page - DIRECT/127.0.0.1 -
1132982593.737    267 69.203.108.130 TCP_MISS/404 631 GET
http://www.foo.com/favicon.ico - DIRECT/127.0.0.1 text/html

Apache Log
127.0.0.1 - - [26/Nov/2005:00:23:12 -0500] "GET /w/index.php/Main_Page
HTTP/1.0" 304 - "http://www.foo.com/w/index.php/Main_Page" "Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
Firefox/1.0.7"
127.0.0.1 - - [26/Nov/2005:00:23:13 -0500] "GET /favicon.ico HTTP/1.0"
404 317 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7"

Using custom skin:
Squid log
1132982449.375      5 69.203.108.130 TCP_IMS_HIT/304 291 GET
http://www.foo.com/w/index.php/Main_Page - NONE/- text/html
1132982450.215    840 69.203.108.130 TCP_MISS/200 1500 GET
http://www.foo.com/w/index.php? - DIRECT/127.0.0.1 text/html
1132982450.359      0 69.203.108.130 TCP_NEGATIVE_HIT/404 654 GET
http://www.foo.com/w/skins/foo/bullet.gif - NONE/- text/html
1132982451.549   1333 69.203.108.130 TCP_MISS/200 1503 GET
http://www.foo.com/w/index.php? - DIRECT/127.0.0.1 text/html
1132982451.551   1207 69.203.108.130 TCP_MISS/200 1499 GET
http://www.foo.com/w/index.php? - DIRECT/127.0.0.1 text/html

Apache log 
127.0.0.1 - - [26/Nov/2005:00:20:49 -0500] "GET
/w/index.php?title=-&action=raw&gen=js HTTP/1.0" 200 1026
"http://www.foo.com/w/index.php/Main_Page" "Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
127.0.0.1 - - [26/Nov/2005:00:20:50 -0500] "GET
/w/index.php?title=MediaWiki:foo.css&action=raw&ctype=text/css&smaxage=18000
HTTP/1.0" 200 1029 "http://www.foo.com/w/index.php/Main_Page"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322)"
127.0.0.1 - - [26/Nov/2005:00:20:50 -0500] "GET
/w/index.php?title=-&action=raw&gen=css&maxage=18000 HTTP/1.0" 200 1025
"http://www.foo.com/w/index.php/Main_Page" "Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"


Thanks,

Vinh-An Trinh





More information about the MediaWiki-l mailing list