Alana Storm
Alana Storm

Reputation: 166066

Long Delay in Composer installation/update

When installing or updating composer packages, sometimes there's a very long lag that looks like

$ composer.phar update
Loading composer repositories with package information

That is, the Loading composer repositories with package information message appears to hang for 5 or 10 minutes before proceeding.

What, exactly, on a microlevel, is composer doing when it's "Loading composer repositories with package information"? Is this network lag? Processing lag? Both? Neither?

Upvotes: 1

Views: 587

Answers (1)

Alana Storm
Alana Storm

Reputation: 166066

After doing some more digging, I was able to profiles this a little better using the --profile and -vvv flags

composer.phar --profile -vvv update 

These flags let me pinpoint the exact bit of network latency that caused my problems.

Upvotes: 4

Related Questions