Question

After reading others with this question, most said to be patient. It's been running for roughly 15 hours now and still nothing. I've got it on the AWS EC2 Micro, which I know the ram is low but I added a 512mb swap. Both the memory and cpu sit around 90%.

Is it safe to say that it's not going to finish or will it eventually do something? Is there anyway to log this process to see what it's doing?

Was it helpful?

Solution

Composer is supposed to finish a reasonably sized install job within seconds. It might probably need some minutes to finish if there is a really huge amount of packages to be installed (by huge I mean more than I experienced yet, i.e. probably more than 100 packages).

The process uses an unusual amount of RAM compared with other PHP scripts, i.e. hundreds of megabytes is not uncommon.

I'd advise to not run Composer on such a badly equipped machine. Adding swap space will not help in any way, it will just make the machine read and write to disk heavily, delaying the whole process by orders of magnitudes (like 100 or 1000 times slower). You should run the install step on your development machine, and then copy everything to the Amazon instance.

How long does it run on your local machine?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top