This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.

Open
This task was never closed in our old bug tracker.
Feel free to open a new task at Github if you feel this is still relevant.

FS#1554 Out of memory: inc/indexer.php line 659

Backend

2008-12-26CultureSheet

Howdy,

we just found a bottleneck in Dokuwiki. Since this morning the error_log in lib/exe was increasing with
"PHP Fatal error: Out of memory (allocated 46399488) (tried to allocate 35 bytes) in /home/fdepuydt/public_html/sheet/inc/indexer.php on line 659"
reports.

The arrays in data/index were growing too big. The results were coming back - both in Ajax as in search results - but were not updated any more.

We're currently looking at an alternative way in filling the index. As it's implemented now the index is filled uniformly,
wouldn't it benefit from sorting the words in files according to the first letter ? Just an initial thought.

regards,
Fred

2008-12-26andi

Could please post a list of your index files and their respective file sizes?

2009-04-11CultureSheet

Hi Andi,

this is the point where the error reports start dripping in in PHP.
We're currently working on a MySQL implementation for the indexer.

run bin/indexer.php from command line it error quit and said:
"dntfwah:2:d2_0x05_the_dic_of_nanhu_settlement... PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in '/webprefix/wiki/inc/indexer.php on line 442"