Hi
I have a problem here with my wiki (again). I have to say that it's not running on real server hardware (no budget). Instead, we're using some dual core intel with 3.2 Ghz. We're a company of around 200 users, of which only a few will use the wiki, so I guess we didn't underestimate the load.
Coming back to the issue I have: I'd like to use the RSS feed feature, but it takes way too long to load. In fact, it doesn't load at all. In the logs, I see this line:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /data/www/wiki.ch.eu.colt/htdocs/includes/DifferenceEngine.php on line 1870
Sometimes it's line 1871, but that's it for the difference.
When it loads the page successfully, my Firefox complains about empty lines before the XML content. I expect that some extensions are not properly written, but that's another problem.
I am running 1.12.0, according to the release notes.
Any hints?
Cheers
André
The empty lines thing means some of your php files have trailing whitespace after the ?> Most sources of MW info are suggesting you leave those off for that very reason (I think). You can always change your php.ini max execution time and let your users know it will be a get up and get coffee kind of operation?
-Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Andre Bonhote Sent: Friday, July 11, 2008 4:34 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] RSS Feed takes too long to load
Hi
I have a problem here with my wiki (again). I have to say that it's not running on real server hardware (no budget). Instead, we're using some dual core intel with 3.2 Ghz. We're a company of around 200 users, of which only a few will use the wiki, so I guess we didn't underestimate the load.
Coming back to the issue I have: I'd like to use the RSS feed feature, but it takes way too long to load. In fact, it doesn't load at all. In the logs, I see this line:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /data/www/wiki.ch.eu.colt/htdocs/includes/DifferenceEngine.php on line 1870
Sometimes it's line 1871, but that's it for the difference.
When it loads the page successfully, my Firefox complains about empty lines before the XML content. I expect that some extensions are not properly written, but that's another problem.
I am running 1.12.0, according to the release notes.
Any hints?
Cheers
André
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Andre Bonhote wrote:
Coming back to the issue I have: I'd like to use the RSS feed feature, but it takes way too long to load. In fact, it doesn't load at all. In the logs, I see this line:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /data/www/wiki.ch.eu.colt/htdocs/includes/DifferenceEngine.php on line 1870
Diffs are pretty slow for large changes, unfortunately. There's a couple things you can do here, in order from easiest to hardest:
1) Reduce $wgFeedDiffCutoff from its default of 32k; pages shorter than this won't be diffed when building RC feeds. 32k usually shouldn't be a problem, though... worst case, push it down to 0 and all pages will just have links to the diff pages instead of inline diffs in the feed.
2) Configure a more persistent object cache -- eg memcached or enabling the eAccelerator or APC backing. Diff results will be cached for a time, which means fewer may need to be done anew in any given feed request.
Memcached is pretty easy when you're running your own server and helps zip things up nicely.
3) Install our wikidiff2 PHP extension, which reimplements the MediaWiki diff tool in *much* faster C++.
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/wikidiff2/
This makes a *huge* difference to diff speed, but is sometimes a pain to compile and install right.
-- brion
Thanks Brion, I'll give these 3 a chance. Right now it works smoothly, but time will tell.
Cheers André
On Thu, Jul 17, 2008 at 1:44 PM, Brion Vibber brion@wikimedia.org wrote: [hints snipped]
mediawiki-l@lists.wikimedia.org