question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 9 Upgrade leading to App crash

See original GitHub issue

Bug Report

Description

Hey Team, recently we upgrade our application from Angular 7 -> 9 and once we deploy the application to our production environment, we started seeing an increase in the memory consumption eventually leading to a crash. We didn’t face any memory issues with the Angular 7 version.

We were not able to replicate the issue in our lower environments even with the same amount of data. We tried few things to identify or replicate the problem, without any success

  • Check if there were any upgraded dependencies that might be the root cause of the memory leak.
  • Take memory snapshots and CPU profiles to further see what is taking up memory when the application is being hit.

It would be helpful if you have suggestions on how to find any solution to our problem?

Your Environment

Angular Version:



Angular CLI: 9.1.15
Node: 10.15.3
OS: darwin x64

Angular: 9.1.13
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                                    Version
--------------------------------------------------------------------
@angular-devkit/architect                  0.901.15
@angular-devkit/build-angular              0.901.15
@angular-devkit/build-optimizer            0.901.15
@angular-devkit/build-webpack              0.901.15
@angular-devkit/core                       9.1.15
@angular-devkit/schematics                 9.1.15
@angular/cli                               9.1.15
@angular/platform-server                   9.1.6
@ngtools/webpack                           9.1.15
@nguniversal/builders                      10.0.0-rc.0
@nguniversal/common                        10.0.0-rc.0
@nguniversal/express-engine                10.0.0-rc.0
@nguniversal/module-map-ngfactory-loader   7.0.2
@schematics/angular                        9.1.15
@schematics/update                         0.901.15
rxjs                                       6.6.7
typescript                                 3.8.3
webpack                                    4.42.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AndrewKushnircommented, May 7, 2021

@sanumolu90 you can find more info about upgrading Angular in our docs here: https://angular.io/guide/updating-to-version-11.

1reaction
AndrewKushnircommented, May 7, 2021

Hi @sanumolu90, I’d recommend trying to upgrade to the most recent version (either latest 11.2.13 or release candidate version 12.0.0-rc.2) and see if that improves the situation (there were a few memory leak fixes that landed since v9). Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after updating to angular 9 | keeps crashing | memory ...
it gets stuck, it takes time. An example, with serving running, I edited a file, it starts recompiling, but does not end. Look...
Read more >
Angular 9 prodution build sub-directory crash on reload, fix ...
Some answers on forums say that this happens because angular serves routes from root URL and it could be fixed by serving requests...
Read more >
Why your Angular App is not Working: 11 common Mistakes
Why your Angular App is not Working: 11 common Mistakes · 1. Import required Angular Modules · 2. Don't use DOM references before...
Read more >
Global Error Handling in Angular - Philipp Kief
In this article you will learn how to catch various errors in Angular — one of ... Now a web application cannot really...
Read more >
How To Fix the Most Common Angular Performance Problems ...
Example of using these steps to solve common Angular performance problems · Too much unnecessary retriggering of methods making the app slow ·...
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