Understanding Garbage Collection and hunting Memory Leaks in Node.js
npm install climem -gCLIMEM=8999 node -r climem dist/main.js
CLIMEM=8999 node -r climem index.jsnpx climem 8999We can simulate a large amount of requests to check our application performance. For this, we can use Autocannon command as example below:
npx autocannon -c 100 -d 30 -p 10 <http://localhost:3003/*endpoint*>
More commands can be found in the Autocannon documentation: