{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/8254","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/8254/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/8254/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/8254/events","html_url":"https://github.com/angular/angular-cli/issues/8254","id":269759068,"number":8254,"title":"High memory usage on serve","user":{"login":"fknop","id":6775689,"avatar_url":"https://avatars2.githubusercontent.com/u/6775689?v=4","gravatar_id":"","url":"https://api.github.com/users/fknop","html_url":"https://github.com/fknop","followers_url":"https://api.github.com/users/fknop/followers","following_url":"https://api.github.com/users/fknop/following{/other_user}","gists_url":"https://api.github.com/users/fknop/gists{/gist_id}","starred_url":"https://api.github.com/users/fknop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fknop/subscriptions","organizations_url":"https://api.github.com/users/fknop/orgs","repos_url":"https://api.github.com/users/fknop/repos","events_url":"https://api.github.com/users/fknop/events{/privacy}","received_events_url":"https://api.github.com/users/fknop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-30T21:23:26Z","updated_at":"2017-10-31T21:27:55Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\nI noticed a high memory usage using the last version of CLI when running`ng 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.\r\n\r\n### Versions.\r\n```\r\nAngular CLI: 1.5.0-rc.6\r\nNode: 7.6.0\r\nOS: win32 x64\r\nAngular: 5.0.0-rc.8\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, platform-browser, platform-browser-dynamic, router\r\n\r\n@angular/cdk: 2.0.0-beta.12\r\n@angular/cli: 1.5.0-rc.6\r\n@angular/flex-layout: 2.0.0-beta.9\r\n@angular/material: 2.0.0-beta.12\r\n@angular-devkit/build-optimizer: 0.0.31\r\n@angular-devkit/core: 0.0.20\r\n@angular-devkit/schematics: 0.0.34\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.8.0-rc.6\r\n@schematics/angular: 0.0.48\r\ntypescript: 2.5.3\r\nwebpack: 3.8.1\r\n```\r\n\r\n<!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n\r\n\r\n### Repro steps.\r\nI would need to try on a new generated project if it does the same thing.\r\n<!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\n\r\n\r\n### The log given by the failure.\r\n\r\nHere is 2.6G of RAM allocated for the `serve` process.\r\n\r\n![image](https://user-images.githubusercontent.com/6775689/32196312-808fcedc-bdc0-11e7-9258-246edb4d5f0b.png)\r\n\r\nAnd 5 minutes after\r\n\r\n![image](https://user-images.githubusercontent.com/6775689/32196769-0590deea-bdc2-11e7-9980-4326f5aa67d4.png)\r\n\r\n\r\n<!-- Normally this include a stack trace and some more information. -->\r\n\r\n\r\n### Desired functionality.\r\n<!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\n\r\n\r\n### Mention any other details that might be useful.\r\n<!-- Please include a link to the repo if this is related to an OSS project. -->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/340912377","html_url":"https://github.com/angular/angular-cli/issues/8254#issuecomment-340912377","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/8254","id":340912377,"user":{"login":"CaerusKaru","id":416563,"avatar_url":"https://avatars3.githubusercontent.com/u/416563?v=4","gravatar_id":"","url":"https://api.github.com/users/CaerusKaru","html_url":"https://github.com/CaerusKaru","followers_url":"https://api.github.com/users/CaerusKaru/followers","following_url":"https://api.github.com/users/CaerusKaru/following{/other_user}","gists_url":"https://api.github.com/users/CaerusKaru/gists{/gist_id}","starred_url":"https://api.github.com/users/CaerusKaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaerusKaru/subscriptions","organizations_url":"https://api.github.com/users/CaerusKaru/orgs","repos_url":"https://api.github.com/users/CaerusKaru/repos","events_url":"https://api.github.com/users/CaerusKaru/events{/privacy}","received_events_url":"https://api.github.com/users/CaerusKaru/received_events","type":"User","site_admin":false},"created_at":"2017-10-31T21:27:55Z","updated_at":"2017-10-31T21:27:55Z","author_association":"CONTRIBUTOR","body":"Also being tracked by #8259, reverting some behavior in next RC/final (keep an eye out for it, PR is #8267)"}}
{"actor":{"display_login":"CaerusKaru"}}