CopenhagenJS conference: Debugging Node.js Performance Issues in Production
Stacktrace on running process (CPU): perf record
to record CPU processes (tell node to dump perf meta data with node --perf_basic_prof_only_functions app.js
) outputs file in /temp/perf-1011.map
and ./perf.data
. Parse data into file perf script > stack.out
. Install npm i -g 0x
and the you can generate a chart flame with the parsed data by 0x -c gen stack.out > flame.html
.