I'm running out of memory trying to set up recommender for the first time. What do I do?

drush recommender

Recommender modules to run: history_rec
Process might take a long time. ***Please be patient. Thanks.***

Running history_rec at 2011-05-11T16:36:51-06:00 ..........
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 73 bytes) in /var/www/vhosts/breadboard/httpdocs/sites/all/modules/recommender/Matrix.php on line 263

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 73 bytes) in /var/www/vhosts/breadboard/httpdocs/sites/all/modules/recommender/Matrix.php on line 263
Drush command could not be completed.

Comments

sterndata’s picture

Category: support » bug

edited max memory in php.ini to 728M and still ran out of memory!

angusmccloud’s picture

Sterndata, did you find a fix for this? I have my memory limit set to about 5gigs, and I get this error as well.

I'm trying to run a little over 60k ratings, 2k users, 6k nodes

UPDATE -- Drush was using a different PHP.ini file, so modifying that one up to 5gb as well, hoping that fixes it. (running through the web at 5gb doesn't work at this size)

sterndata’s picture

@angus -- I haven't found a workaround for this. I've set the memory limit as high as real memory 75% of virtual memory and still run out of memory. It just takes longer before it fails.

danithaca’s picture

I'm working on #1180000: GSoC2011: Apache Mahout Integration. It should fix some performance issues. Will mark this issue as "won't fix" when #1180000: GSoC2011: Apache Mahout Integration is done.

danithaca’s picture

Status: Active » Closed (won't fix)

Performance issue is solved by using Mahout integration. See #1180000: GSoC2011: Apache Mahout Integration for D7 and #1198954: D6 back port: Mahout support for D6.

Drush doesn't seem to be needed anymore, because we won't do intensive PHP computations in PHP-CLI. So drush won't be supported in the RecAPI 3.x releases.

I don't plan to fix this in the 6.x-2.x release because it doesn't seem to be easily fixable under the PHP environment