Skip to content

anopszetex/memory-leak-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memory-leak-example

Example of memory leak in Node.js

Project Setup

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

To start the app

Starting service with 0x

# discover the bottlenecks and hot paths in your code, with flamegraphs
npm run flame-0x

In sequence autocannon

# 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

Releases

No releases published

Packages

No packages published