Performance Analysis on Node.js Process in Docker Container
Summary of my bookmarked Github repositories from Jan 18th, 2019
Github repositories
- hzhu/node-perf
This link provides a guide for performing performance analysis on a Node.js process running inside a Docker container. It demonstrates how to generate a flame graph that visualizes the CPU-intensive functions in the Node.js stack. The process involves pulling an Ubuntu Docker image, installing Linux perf tools and Node.js, copying the Node.js program into the container, and running it with the necessary flag. The article also explains the interpretation of flame graphs, including stack height, stack frame width, and color representation. It provides step-by-step instructions using Docker commands and various tools to record profiles and generate a human-readable flame graph.