acquia / lightning-project

A Composer-based installer for the Lightning distribution of Drupal 8. Support ended on November 2, 2021 and this project is no longer maintained.
133 stars 60 forks source link

Memory requirement for installation? #32

Closed seanr closed 6 years ago

seanr commented 7 years ago

My memory limit is 256MB, but as noted in the composer docs, it increases that limit internally.

seanr@Seans-MacBook-Pro ~/Sites $ composer create-project acquia/lightning-project:^8.1.0 lightning --no-interaction
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Installing acquia/lightning-project (8.2.2)
  - Installing acquia/lightning-project (8.2.2)
    Downloading: 100%         

Created project in lightning
Loading composer repositories with package information
Updating dependencies (including require-dev)
PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 134217728 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/composer:0
PHP   2. require() /usr/local/bin/composer:24
PHP   3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43
PHP   4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:99
PHP   5. Composer\Console\Application->doRun() phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:123
PHP   6. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:189
PHP   7. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:192
PHP   8. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:844
PHP   9. Composer\Command\CreateProjectCommand->execute() phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:259
PHP  10. Composer\Command\CreateProjectCommand->installProject() phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:142
PHP  11. Composer\Installer->run() phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:187
PHP  12. Composer\Installer->doInstall() phar:///usr/local/bin/composer/src/Composer/Installer.php:228
PHP  13. Composer\DependencyResolver\Solver->solve() phar:///usr/local/bin/composer/src/Composer/Installer.php:502

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 134217728 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220

Call Stack:
    0.0010     228928   1. {main}() /usr/local/bin/composer:0
    0.0189     426616   2. require('phar:///usr/local/bin/composer/bin/composer') /usr/local/bin/composer:24
    0.0478    4179992   3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43
    0.0500    4556648   4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:99
    0.0508    4691056   5. Composer\Console\Application->doRun() phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:123
    0.1323    4832224   6. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:189
    0.1324    4832720   7. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:192
    0.1325    4833296   8. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:844
    0.1332    4839528   9. Composer\Command\CreateProjectCommand->execute() phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:259
    0.1364    5059144  10. Composer\Command\CreateProjectCommand->installProject() phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:142
    5.5883   95401888  11. Composer\Installer->run() phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:187
    5.6860   11325784  12. Composer\Installer->doInstall() phar:///usr/local/bin/composer/src/Composer/Installer.php:228
    6.3851   12081776  13. Composer\DependencyResolver\Solver->solve() phar:///usr/local/bin/composer/src/Composer/Installer.php:502

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.seanr@Seans-MacBook-Pro ~/Sites $ 
balsama commented 7 years ago

256MB seems pretty low. Especially with xdebug enabled. Can you increase that to 2G?

phenaproxima commented 6 years ago

This is not a Lightning Project-specific problem, so I'm closing this issue.