You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i merged this one yesterday to try mitigate the JS/source map end without getting too invasive, and it seemed to help somewhat, but might need a bit more work. #5208
See also #5223 as we're likely to be re-orging this
I was so happy that we can run this bundling in parallel :-) But yeh, if it gives trouble to our build infrastructure we can easily re-shape it to do things sequentially. Provided that we are sure that this is the root cause, of course.
I have a pending PR of the new system builder, that allows separation
between the tracing step and the writing to disk step. It definitely is
much faster and lighter weight. Coming soon.
On Fri, Nov 13, 2015 at 12:11 Igor Minar [email protected] wrote:
it might be enough to just refactor the code bundle sequentially instead
of using Q.all.
—
Reply to this email directly or view it on GitHub #5229 (comment).
@pkozlowski-opensource is looking into this. I don't think that we'll be able to reduce the memory usage easily without impacting the total build time, so let's increase the heap size by default when calling gulp build.js (or more specifically the bundle task that causes the OOM).
This will require spawning a new process from within the gulp process but that should be a big deal. We just need to make sure that it's done a cross-platform compatible way.
I've been running into process out of memory issues while running ngc.
ngc runs fine for the first time when things are in JIT mode in main.ts, after first run, I change main.ts to AoT mode.
Then ngc takes a while to compile and the process ends up out of memory.
Is there a way to increase --max-old-space-size while running ngc?
Please file a new issue as this is unrelated to the old issue.
On Fri, Oct 28, 2016, 9:44 PM Sukhdeep Singh [email protected]
wrote:
folks just a question
I've been running into process out of memory issues while running ngc.
ngc runs fine for the first time when things are in JIT mode in main.ts,
after first run, I change main.ts to AoT mode.
Then ngc takes a while to compile and the process ends up out of memory.
Is there a way to increase --max-old-space-size while running ngc?
Activity
yjbanov commentedon Nov 11, 2015
/cc @IgorMinar
robwormald commentedon Nov 11, 2015
i merged this one yesterday to try mitigate the JS/source map end without getting too invasive, and it seemed to help somewhat, but might need a bit more work. #5208
See also #5223 as we're likely to be re-orging this
pkozlowski-opensource commentedon Nov 11, 2015
I was so happy that we can run this bundling in parallel :-) But yeh, if it gives trouble to our build infrastructure we can easily re-shape it to do things sequentially. Provided that we are sure that this is the root cause, of course.
IgorMinar commentedon Nov 13, 2015
it might be enough to just refactor the code bundle sequentially instead of using
Q.all.robwormald commentedon Nov 13, 2015
I have a pending PR of the new system builder, that allows separation
between the tracing step and the writing to disk step. It definitely is
much faster and lighter weight. Coming soon.
On Fri, Nov 13, 2015 at 12:11 Igor Minar [email protected] wrote:
build(npm_publish.sh): run gulp via node --max-old-space-size=1900 to…
1e74058 build(npm_publish.sh): run gulp via node --max-old-space-size…
1e74058 build(npm_publish.sh): run gulp via node --max-old-space-size…
alfonso-presa commentedon Jan 7, 2016
Just in case it helps. I think this trace might be related to this issue. Running
gulp buildon OS X El Capitan with node v4.2.4 :It doesn't happen if I only run
gulp build.jssb8244 commentedon Jan 21, 2016
Contributing a failure for
gulp build.js. On node v4.2.1 El Capitan 16GB RAM.This script seems to do the trick, however.
IgorMinar commentedon Jan 22, 2016
@pkozlowski-opensource is looking into this. I don't think that we'll be able to reduce the memory usage easily without impacting the total build time, so let's increase the heap size by default when calling
gulp build.js(or more specifically the bundle task that causes the OOM).This will require spawning a new process from within the gulp process but that should be a big deal. We just need to make sure that it's done a cross-platform compatible way.
16 remaining items
zackhall commentedon Mar 9, 2016
I am also hitting this issue with
gulp buildandgulp build.js. Is there a mitigation I can use to get around this?alexeagle commentedon Mar 9, 2016
workaround is
node --max_old_space_size=4000 ./node_modules/.bin/gulp ...On Tue, Mar 8, 2016 at 4:25 PM Zack Hall [email protected] wrote:
zackhall commentedon Mar 9, 2016
Thanks, @alexeagle. That worked for me!
jocull commentedon May 3, 2016
Documentation should just cite
npm run buildas that takes care of it for you.pkozlowski-opensource commentedon Jun 6, 2016
This one is obsolete with all the recent build changes.
jepetko commentedon Jun 22, 2016
on windows environment I needed:
run as usual:
singhjusraj commentedon Oct 28, 2016
folks just a question
I've been running into process out of memory issues while running ngc.
ngc runs fine for the first time when things are in JIT mode in main.ts, after first run, I change main.ts to AoT mode.
Then ngc takes a while to compile and the process ends up out of memory.
Is there a way to increase
--max-old-space-sizewhile running ngc?IgorMinar commentedon Oct 28, 2016
Please file a new issue as this is unrelated to the old issue.
On Fri, Oct 28, 2016, 9:44 PM Sukhdeep Singh [email protected]
wrote:
singhjusraj commentedon Oct 28, 2016
there is issue #12184 which is also closed.
I couldn't find a solution anywhere to this
AjayShelar commentedon Sep 28, 2018
https://www.npmjs.com/package/increase-memory-limit
npm install -g increase-memory-limitrun inside project
increase-memory-limitworked for me.
angular-automatic-lock-bot commentedon Sep 14, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.