Example of memory leak in Node.js
Clone the repository:
git@github.com:anopszetex/memory-leak-example.git
Make it your current working directory:
cd memory-leak-example
Install dependencies:
npm i
# discover the bottlenecks and hot paths in your code, with flamegraphs
npm run flame-0x
# in sequence autocannon
npm test
or
npm start
# in second execute the climem to monitoring the consume of memory
npm run climem
# and for last, execute autocannon, will perform test of load/requests
npm test