NodeJS Cheatsheet

Remote debug nodejs app / use chrome developers to detect memory leaks
Step 1 enable remote debug on a running nodejs process
kill -SIGUSR1 $NODEJS_PID
Now your nodejs process (V8) is listening on port 5858
Step 2 run node-inspector
# node-inspector --web-port=8081
Node Inspector v0.12.8
Visit http://127.0.0.1:8081/?port=5858 to start debugging.

Comments