Hello @inasutin
the error tells us that your machine (or rather PHP) does not have enough memory to index all your data.
The simple solution would be to increase the memory limit for PHP.
The "proper" solution would be to find out which category is causing this issue and also re-evaluate if the data that is currently being indexed in terms of "do we really need to index this?"
In order to do so you can manually re-index the search by running the command @StefanP74 supplied but add the -vvv
option to see all details. You will see which categories gets indexed and the amount of entries (please note: the process will slow down due to this output).
This can help you find the culprit (= the category that causes the memory issue).
sudo -u www-data php /var/www/html/console.php search-index --user admin --password XXXXXXXXX --tenantId 1 -vvv
Afterwards you can try to adjust the indexing. For example you can prevent certain categories from beeing indexed as you might not need them to be searchable - that will free up resources!
For this you can call the search-index
command and pass a list of categories that you actually want to be indexed via --category
... This will be a bit tedious, but ideally you'll only have to do it once.
sudo -u www-data php /var/www/html/console.php search-index --user admin --password XXXXXXXXX --tenantId 1 --category C__CATG__GLOBAL --category C__CATG__CPU
Best regards,
Leo