Hi,

I'm trying to rebuild the search index for Drupal's core search. When running drush search-index on a site with ~60,000 nodes, drush dies with a fatal error (PHP memory limit of 200M not enough, OK). Then I raised the PHP memory limit to 2000M, started drush search-index again, and drush died again:

Remaining items to be indexed: 49073                                                                                                                               [ok]
PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted (tried to allocate 60292 bytes) in /usr/share/drush/includes/backend.inc on line 116
Drush command could not be completed.

If two gigabytes of RAM don't suffice to build a bloody search index of ~60,000 nodes, then IMHO that is a bug.

Any suggestions?

Somehow related: #908094: Fatel Error: Allowed memory size exhausted at drush/includes/environment.inc on line 437 and/or line 350

Comments

asb’s picture

Funny, etc/php5/cli/php.ini has memory_limit = -1 which seems to trigger Suhosin:

Oct  8 17:42:19 abcdefgh suhosin[13744]: ALERT - script tried to disable memory_limit by setting it to a negative value -1 bytes which is not allowed (attacker 'REMOTE_ADDR not set', file 'unknown')

OK, I have 24 gig of RAM, let's play this game...:

memory_limit = 2000M

Now:

Oct  8 17:52:20 abcdefgh suhosin[19755]: ALERT - script tried to increase memory_limit to 2097152000 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')

http://drupal.org/node/1208592 wtf?

moshe weitzman’s picture

Category: bug » support
Status: Active » Fixed

just keep rerunning it when it dies. the README suggests the following bashwhile true; do drush search-index; sleep 5; done

moshe weitzman’s picture

And drush3 is utterly unsupported.

asb’s picture

Thanks, with the one-liner from #2 Drush keeps dying, gets revived, dies again... my shell looks a bit like an ugly Zombie flick ;)

I am aware of the major discrepancy of the dev branches of Drush and what comes packaged with the current Debian GNU/Linux (drush 3.3); it'd be really great to get a viable solution to combine a stable OS with a stable and supported version of Drush, as running tested and stable software in my production environments in crucial. Debian delivers that, but not every released version of Drush did.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.