Drush - Fatal error: Allowed memory size of xxx bytes exhausted

From aoxoaWiki
Jump to: navigation, search

If drush runs out of memory, it will throw an error such as

Fatal error: Allowed memory size of xxx bytes exhausted

Reading up on this, there are apparently a number of different places where the memory limitations are set. The CLI (command line interface) version of PHP may not be controlled but the same php.ini file as the web server uses.

However, this can also be set on a site-by-site bases, using the .../sites/default/settings.php file.

Edit the .../sites/default/settings.php file and add a line similar to:

  ini_set('memory_limit', '150M');

Online Resources

allowed memory size error: Drush CLI may use different php settings from "regular" Drupal



Back to Drupal