I
I
ivandao2019-08-30 16:56:58
Node.js
ivandao, 2019-08-30 16:56:58

How to reduce the amount of RAM used by a script?

A process with a script running on a node takes up a lot of RAM.
What tools are there to analyze which specific modules or parts of the program spend how much resources?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Inviz Custos, 2019-08-30
@ivandao

How to reduce the amount of RAM used by a script?

It's obvious to write optimal code ;)
Various, ranging from built-in --inspect-brk, --prof & --prof-process to https://www.npmjs.com/package/0x , https://github.com/nearform/node-clinic and like them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question