Description
If an user do a single stupid fulltext search, the memory consumption goes too high. Depend on the environment of the moinmoin this can lead to several unwanted problems.
Steps to reproduce
I told ThomasWaldmann what the problem is1, in general:
- Do a search
- Memory goes up and up (a single process, from ~60MB to 700MB)
- After a few seconds or minutes you either got your search back or process get killed (to much memory usage) and error message is shown
Example
After a few seconds the memory goes form ~ 60MB up to 800MB, with a single search query!
Component selection
- action/fullseach.py
- maybe xapian
Details
MoinMoin Version |
1.9.3 |
OS and Version |
Ubuntu |
Python Version |
2.5 |
Server Setup |
Apache / mod_wsgi (5 processes, 15 threads) |
Server Details |
4 GB Memory / P4 2.6GHZ |
Language you are using the wiki in (set in the browser/UserPreferences) |
de |
I could also reproduce the same problems under an different server (16GB Memory, Xeon 8x2.33GHz):
- latest moin from hg 1.9.x
- python 2.7
- xapian 1.2.7
- uwsgi 0.9.9.1
- nginx 1.0.6
Workaround
- disable fulltext search
- or filter out some searches
Discussion
A workaround like this is not enough, we need a better filter or generaly a better result list management (less memory usage in generaly).
Plan
- Priority:
- Assigned to:
- Status:
I guess you need to have a wiki with a few hundred pages at least, to reproduce this (1)