nearform / node-clinic
- суббота, 3 февраля 2018 г. в 03:15:15
Clinic diagnoses your Node.js performance issues
npm install -g clinic
As a first step, run the clinic doctor
:
clinic doctor -- node server.js
Then benchmark your server with wrk
or autocannon
:
wrk http://localhost:3000
autocannon http://localhost:3000
Finally shut down your server (Ctrl+C). Once the server process has shutdown
clinic doctor
will analyse the collected data and detect what type of issue
you are having. Based on the issue type, it will provide a recommendation for
you.
If you encounter any issue, feel free to send us an issue report at:
https://github.com/nearform/node-clinic/issues
When creating an issue, it will be a huge help for us if you upload your
data to the clinic cloud. To do this, use clinic upload
:
clinic upload 1000.clinic-doctor
For more information use the --help
option:
clinic doctor --help
clinic upload --help
-h | --help Display Help
-v | --version Display Version