We help IT Professionals succeed at work.

Joomla smart search indexing ends with an error

SSupreme asked
I have few articles size about 500KB in script and text each.
I am getting following error each time I try to save the article:
Fatal error: Out of memory (allocated 1408499712) (tried to allocate 1211998 bytes) in /usr/web/iisus/libraries/joomla/database/driver.php on line 1636

Small articles are fine and after saving can be seen as indexed.

As you can see from error I set unlimited memory,
I set Memory Table Limit at indexing options to 2000 and batch from 50 to 5 (minimum).
I changed finder_tokens and finder_tokens_aggregate tables from MEMORY to INNODB.
And all of this don't seem to work.
Watch Question

This is probably a php memory configuration and the memory limit can be changed in the php.ini file.
edit the php.ini and look for:

memory_limit = 128M

and increase it.


Thanks for your answer, I didn't solve my problem yet.
As you can see from the question 1,408,499,712 bytes allocated, it is equal to 1343M but it isn't enough.
I swap memory from ram to HDD but still, I got so high CPU and for so long that I was banned by the host provider.

I cannot understand why this Joomla smart search doesn't work.
what is the setting in php.ini for the memory_limit ?
the error message with the memory sizes may be erroneous...


Atm "memory_limit = -1"

By default I had 128MB, I tired 256, 512, 1024, 32 and 8.
I would write a file info.php :

and put the following code in it

phpinfo ();

and upload it to the root and run it to see what the actual memory is.
(not sure -1 is correct)

It also may be a corrupt file that joomla is searching through and the size marker is corrupt.?



Have a look.
so its set to -1 that means unlimited and yet it still comes up with that error  so it must be joomla or the files its searching or a database entry is corrupt.
what version Joomla are you running?
you can put it into debug mode and see if the messages help.
in admin so to Global configuration/ system settings and click on Yes and save.
see if that helps.
signing off now till tomorrow
I would install akeeba admin tools (buy the pro version its not much) and it comes with database tools to check improve and analyse the database,
if that doesn't find anything I would re upload the joomla system files (overwrite the ones there) see if that helps.
another thought is to switch templates to one of the built in.
then try the search - if that works its a problem with your current template


Small articles are fine and after saving can be seen as indexed.
problems with large articles, I use  html markup inside, can it crash because of loop?


Fatal error: Out of memory (allocated 1511260160) (tried to allocate 1223002 bytes) in .../libraries/joomla/database/driver.php on line 1636

I tried 1000-4000 lines of html markup at article and it worked fine, after 5000 I got error above.
to get round it, I would split the large articles into smaller article and link them


What do you mean by linking them?
well I would create a category for a set of articles and then create a menu item (type  category blog )  menu to display that category of articles.
then configure the blog page (under blog layout during menu creation) to say how many and how they are displayed.
then in the all the articles in that category you can configure the articles (under Options) to link previous and next articles in that category etc...


I consider it as walk around. Not an option in my case, cannot slit article.
I know but sometimes bugs have to be walked around ;-)