Debugging memory leaks in nodejs
This is a quick tutorial for debugging memory leaks in nodejs.
Step 1: Install the debugging tools
First of all, you need to install the v8-profiler module. Without that required from within your app, you will not be able to take heap snapshots in the debugger.
mkdir node_modules npm install v8-profiler
Once you have that installed, you need to install the node inspector utility by doing:
npm install -g node-inspector