Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Heap memory out issue in the new jsdom based SSR engine #2733

@sandeep-venugopal

Description

@sandeep-venugopal

Background
We recently changed the SSR rendering engine in our angular ssr app from express to clover. (We had to change the rendering engine in order to implement Microfrontends).

Issue:
We are using the new jsdom based ssr engine clover via the @nguniversal/common, (12.1.0) but our app is experiencing Heap memory out issue.

As the requests to the node server increases, we are seeing that heap memory is also increasing continuously and garbage collection is not happening. At around 400rpm, it is crashing with this error. We observed that at this requests rate, memory becomes 1GB in one or 2 minutes of running the app.

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

** version details**
"@angular/compiler": "12.2.10",
"@angular/core": "12.2.10",
"@nguniversal/express-engine": "^11.2.1",
"@nguniversal/common": "12.1.0",
"@nguniversal/builders": "11.2.1"

Same app is working fine and is in production with express engine.

Can anyone help us with any pointers regarding this?

OR
can you confirm if clover engine is production ready?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions