Composer out of memory after update
Hi there,
Im having some issue with composer update, i have made some edit to the server following WHM->CSF->Check server security today, and after that i am unable to run "composer update" as i get a memory error, i remember when i first setup the server i had some similar issues due bombshell being activated but thats not the case now.
Heres the output :
[pladma@webserver pladma]$ composer update
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 194076672) (tried to allocate 4281648 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/Util/RemoteFilesystem.php on line 451
Composer update was working fine before i did some of the tweak on that CSF page.
I have re-disabled Bombshell protection as its something can create issues, but other than that i don't see what other edit could have affected this.
I do have already swap in place and theres memory free, here the free -m command result:
total used free shared buffers cached
Mem: 1993 1754 238 134 59 413
-/+ buffers/cache: 1281 711
Swap: 2047 92 1955
The major change i did was to disable php 5.5, 5.6 7.1 and now everything runs on 7.2
Composer is at latest version, but so far i remember all hosting were using 7.2 already so it shouldnt be changed anything.
Php.ini memory limit is 1024M
Any idea?
-
Problem solved, note to self, after disabling bombshell need to re-login in shell... Thanks 0 -
Hi @TommieKstn I'm glad to see you were able to resolve the issue! Thanks for updating the thread with the solution as well. 0
Please sign in to leave a comment.
Comments
2 comments