Created
January 31, 2023 14:35
-
-
Save samuelastech/dbba4bc6bc2252719a3b97905b92e29c to your computer and use it in GitHub Desktop.
How to monitor Node.js application using Climen and Autocannon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The "-r" flag allows you to preload a module when running Node, see https://www.stephenlewis.me/blog/node-dash-r | |
"scripts": { | |
"start": "CLIMEM=8999 node -r climem index.js", | |
"climem": "npx climem 8999", | |
"test": "npx autocannon -c 100 -d 30 -p 10 http://localhost:3000" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment