High memory usage on serve

See original GitHub issue

Bug Report or Feature Request (mark with an 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.

Versions.

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

Repro steps.

I would need to try on a new generated project if it does the same thing.

The log given by the failure.

Here is 2.6G of RAM allocated for the serve process.

image

And 5 minutes after

image

Desired functionality.

Mention any other details that might be useful.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
ar53ncommented, Nov 2, 2017

Also have this problem and have problem when ng build FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

1reaction
filipesilvacommented, Dec 7, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Server 2016 High Memory Usage - Microsoft Q&A
I don't see any high memory usage in Processes tab when sorted by Memory. If I add all memory usages in Processes tab,...
Read more >
Fix High RAM Memory Usage Issue on Windows 11/10 [10 ...
10 Fixes for High (RAM) Memory Usage Issue on Windows 11/10 · 1. Close Unnecessary Running Programs/Applications · 2. Disable Startup Programs ·...
Read more >
80% memory utilization on server- is this just caching?
Memory utilization is very high on this 2008 R2 server, but I think it might just be caching RAM- performance on the server...
Read more >
High Memory utilization and their root causes | Dynatrace
Even though an average server might have 16 GB or more memory, excessive memory usage in enterprise applications has become an increasingly frequent...
Read more >
Memory consumption is too high on Windows Server
If you see that you have a lack of RAM but it was not used by Connect Agent (check in Task manager), it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found