Giter VIP home page Giter VIP logo

Comments (8)

cebe avatar cebe commented on May 18, 2024

How high is the limit you hit with angular-bootstrap?

from composer-asset-plugin.

francoispluchino avatar francoispluchino commented on May 18, 2024

The plugin only creates VCS repositories automatically, and converted the bower.json or package.json files into a Composer version. You get almost the same memory consumption if you added all the repositories manually (but they must contain the file composer.json, this is not necessary with the plugin).

The problem of excessive memory consumption by Composer is well known (see composer/composer#3208, composer/composer#2959, composer/composer#2704, composer/composer#2661, composer/composer#1898).

I suggest you increase the memory size in your php.ini (personally, I have memory_limit = 256M).

Concerning the performance (getting content of packages), I suggest you read the issue #42.

from composer-asset-plugin.

angelcoding avatar angelcoding commented on May 18, 2024

Thanks for the quick replies.

I've tried temporarily increasing memory by using php -dmemory_limit=1G /usr/bin/composer.phar update but it still dies at 1GB. Not much point trying any higher than that, especially as I'm only dealing with one package with many more to come.

Looks like it's a question of finding workarounds and ways to minimize the load on the composer solver then.

Unfortunately I don't have time to look into it further at the moment, so back to manual downloads for me (certainly for larger packages).

Thanks again.

from composer-asset-plugin.

francoispluchino avatar francoispluchino commented on May 18, 2024

I just tested, and I have never exceeded 41,2M for memory.

However, for the update, Composer analyzes all versions, and there is no workaround.

I grant you, angular/bower-angular is very very very slow, because it has 1 683 tags, and this is just huge!

from composer-asset-plugin.

francoispluchino avatar francoispluchino commented on May 18, 2024

@angelcoding, @cebe I have maybe a solution (see #44).

from composer-asset-plugin.

angelcoding avatar angelcoding commented on May 18, 2024

@francoispluchino Strange, maybe there's something unique to my setup causing the memory leak then.
Thanks for the info and possible solution. Will try it out when I get a chance.

from composer-asset-plugin.

francoispluchino avatar francoispluchino commented on May 18, 2024

@angelcoding See the FAQ: How to reduce the number of requests for getting the package definitions?

from composer-asset-plugin.

francoispluchino avatar francoispluchino commented on May 18, 2024

The issue #52 reduces the amount of memory used for the update.

from composer-asset-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.