x)- [x] bug report -> please search issues before submitting
- [ ] feature request
I noticed a high memory usage using the last version of CLI when runningng serve. It starts with a normal amount of memory allocated. And then for every change made to the project files, it seems that the previous memory allocated for the build is not freed and the memory keeps growing until I have to stop the process and start again.
Angular CLI: 1.5.0-rc.6
Node: 7.6.0
OS: win32 x64
Angular: 5.0.0-rc.8
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic, router
@angular/cdk: 2.0.0-beta.12
@angular/cli: 1.5.0-rc.6
@angular/flex-layout: 2.0.0-beta.9
@angular/material: 2.0.0-beta.12
@angular-devkit/build-optimizer: 0.0.31
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.34
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0-rc.6
@schematics/angular: 0.0.48
typescript: 2.5.3
webpack: 3.8.1
I would need to try on a new generated project if it does the same thing.
Here is 2.6G of RAM allocated for the serve process.

And 5 minutes after

Duplicate of #5613
With 1.5 and Angular 5 a new compiler is used so this may not be a dupe.
@fknop Can you try with the latest RC of 1.5?
@clydin Is rc6 not already the latest rc ?
Edit: ok nevermind, I just saw rc-8 was out, I was looking at the releases on GitHub and there was no changelog.
I'll will try later then!
@clydin High memory usage is still there but it seems to grow much slower.
Also being tracked by #8259, reverting some behavior in next RC/final (keep an eye out for it, PR is #8267)
I'm going to do another RC today for that PR and the sourcemaps ones.
I'm facing the same issue, annoying... latest angular & latest cli
Also have this problem and have problem when ng build FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
I noticed that it eats a lot of memory even in the release build. Can anyone else reproduce that also?
For discussion about the amount of memory used by ng serve, please use #5613 instead. For the memory usage in ng build --prod please use https://github.com/angular/angular-cli/issues/5618.
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._
Most helpful comment
Also have this problem and have problem when
ng buildFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory