Description
Clicking the "OrphanedPages" link causes cgi to loop forever, cpu-busy.
Steps to reproduce
Install MoinMoin per instructions on linux/apache 1.3
Click the OrphanedPages link
- You need to wait, CPU usage is at nearly 100 %.
Example
This is happening on an internal wiki and I can't publish the url. I may be able to set up another installation on a public server, but I don't know how to show that the cgi is looping. I can only tell by running "top".
Details
MoinMoin Version |
1.3.1 |
OS and Version |
Fedora core 2 |
Python Version |
2.3.3 |
Server Setup |
apache 1.3.1, moin.cgi, using SSL and http auth |
Server Details |
|
Workaround
Call OrphanedPages often enough until it gets rendered fast.
Discussion
This is a near-showstopper, the looping hoses the server until someone logs in and unwedges it.
How long did you wait? Even with a clean wiki and 1.5 GHz of performance, you might need approx. 5 mins. This time is needed to fill caches. You can fetch this page multiple times even if you have got a timeout before, the process will resume. If OrphanedPages does not get faster on subsequent requests, check the permissions of your underlay directory. MoinMoin needs to write the cache files there.
Hmm, I may not have waited long enough then (5 minutes?!!!!!). I don't know how long I waited in wall clock time. I saw cpu time go up to 2 minutes or so before I killed the process. I did this about twice. I did it another time too, but killed it somewhat sooner. I do have cache files in the data directory. There were only a handful of user-written pages in this (new) wiki, but there are 500 or so pages included with the distro, so if OrphanedPages was trying to render and cache them all, that might explain. I had already been playing with the wiki for a while before running OrphanedPages, so I did have most of the .py files compiled to .pyc, I'd hope. --Paul
Yeah, there are quite many pages in the distribution. Where is the problem in running this once, maybe when nobody else uses the wiki? And maybe renice the cgi in this period of time ...
Plan
- Priority:
- Assigned to:
- Status: No bug, simply very slow the first time on fresh install