[Web4lib] mediawiki and excessive CPU usage
Michael McDonnell
michael at winterstorm.ca
Tue Jul 10 14:29:48 EDT 2007
Ken Irwin wrote:
> Hi folks,
>
> We've got a wiki running on our library website (using MediaWiki
> 1.6.8) and have noticed that since installing it our CPU usage is
> almost always right up at 99% of capacity. About 100 distinct
> processes related to the wiki run about 2000 times every minute. It
> may be that a high-traffic wiki needs all this legwork to keep itself
> up-to-date and functioning well, but this is a super low-traffic wiki.
> Does anyone know if it's possible to get wiki to chill out a bit?
> ($cpuQualudes = "yes";)
>
> We're thinking of installing additional wikis on the same machine for
> different purposes, and we'd like to not fry its little brain. Any
> advice?
Hi Ken,
This may be a misconfiguration or a bug. What platform are you running
mediawiki on? Apache on Linux? What version of PHP? How much RAM does
your server have?
Do you see any logfile activity that corresponds with this activity?
That is, are there access or error logs being generated in large
volumes? You can change what apache is logging by changing the
"LogLevel" configuration line (typically in httpd.conf). Change it from
"notice" to "info" or "debug" and see if that provides any relevant
information.
Under linux you can also take a peak at what those crazy processes are
doing with the
"strace" command (under Solaris 10 you could use dtrace). e.g. strace
-p <pid> where <pid> is the ID of one of the crazy processes.
--
Michael McDonnell
More information about the Web4lib
mailing list