Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory error when installing sulu-minimal via Composer #129

Closed
JOduMonT opened this issue Nov 2, 2018 · 4 comments
Closed

Memory error when installing sulu-minimal via Composer #129

JOduMonT opened this issue Nov 2, 2018 · 4 comments

Comments

@JOduMonT
Copy link

JOduMonT commented Nov 2, 2018

even after trying this trick

# php -dmemory_limit=-1 $HOME/bin/composer.phar create-project sulu/sulu-minimal . -n
Installing sulu/sulu-minimal (1.6.22)

  • Installing sulu/sulu-minimal (1.6.22): Loading from cache
    Created project in .
    Loading composer repositories with package information
    Updating dependencies (including require-dev)

mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory

Fatal error: Out of memory (allocated 779100160) (tried to allocate 75497472 bytes) in phar:///home/jodumont/bin/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 90

so what else I could try ?

@alexander-schranz
Copy link
Member

Hello @JOduMonT,
is it possible that you have only 750mb ram available on your system?

@JOduMonT
Copy link
Author

JOduMonT commented Nov 2, 2018

@alexander-schranz sorry I omit few detail
it's a VPS, and yes the 750mb seams a hard limit

@alexander-schranz
Copy link
Member

@JOduMonT maybe you find some help in the composer https://github.com/composer/composer/issues.
Performance improvements can be make when you have unzip installed in your OS also make sure you have the newest version of composer by running php $HOME/bin/composer.phar self-update.

Else I would try to create the project on a machine which has more memory. Then deploy the project to your VPS with the composer.lock file which was created after the create project where you then run just composer install which should not need so much memory as it don't need to resolve the dependencies.

@JOduMonT
Copy link
Author

JOduMonT commented Nov 3, 2018

thank @alexander-schranz; I'll try the composer.lock alternative

@JOduMonT JOduMonT closed this as completed Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants