Coder Social home page Coder Social logo

Comments (5)

StfBauer avatar StfBauer commented on May 18, 2024 3

It has nothing to do with a leak in the ts-loader. The issue comes from NodeJS 8 where they introduced really low memory cap 1.4GB per NodeJS process. The only option to get around this limitation is to start gulp server using the following command.

gulp serve --max-old-space-size=8192

This will set the appropriate Node flag to use a max of 8Gb or whatever value you pass in.

Screenshot 2019-06-10 at 11 56 25

Pre-NodeJS 8 a process could use as many memory as they want or request.

from generator-teams.

wictorwilen avatar wictorwilen commented on May 18, 2024

I noticed this as well occasionally, but haven't found a good solution to it. I'll try get a closer look at it or if someone out there has some extra time over, feel free to chime in

from generator-teams.

doxxx avatar doxxx commented on May 18, 2024

I had a quick look at it using the Chrome dev tools to connect to the gulp node process and it looks like it might be a leak in ts-loader. I saw lots of duplicate strings containing what looked like generated Javascript, and the owner stack led back to ts-loader. If I have some more time later I can try digging deeper to determine where specifically this might be happening.

from generator-teams.

wictorwilen avatar wictorwilen commented on May 18, 2024

Closing this as resolved both since the build pipeline is rebuilt and the solution provided by @StfBauer above

from generator-teams.

latonita avatar latonita commented on May 18, 2024

I have same behavior on Node 10.15. Adding max space 8192 postpones the problem for some time.

from generator-teams.

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.