nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.47k stars 282 forks source link

Enormous Node.js JavaScript Runtime consumption, despite heap information is OK #4187

Closed alexandis closed 4 months ago

alexandis commented 1 year ago

I'm running Angular apps (here are 2 of them running on different ports):

ng serve --configuration development --ssl --ssl-key ./localhost.key --ssl-cert ./localhost.crt --port 4202

and trying to figure out what is going on lately. Please have a look at this memory consumption right from the start: image Whereas heap information looks OK to me: image How to profile enormous memory consumption in my situation? Node version is 18.14.1

preveen-stack commented 1 year ago

cc @nodejs/performance

tniessen commented 1 year ago

If this is the RSS and not the amount of reserved virtual memory, you can see if --max-old-space-size helps. I believe Node.js 18 will use up to 2 GB by default, but you can restrict it to a smaller amount if the process doesn't need that much memory.

mcollina commented 1 year ago

My understanding is that ng also compiles typescript. In that case, the mentioned memory consumption is ok.

github-actions[bot] commented 5 months ago

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] commented 4 months ago

It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.