I have a node app that uses express and redis. On our development server, after a bit of use node starts to use 100% cpu. The application still responds but top reports node using 100%. The cpu doesn't drop until node is restarted.
I have not nailed it down to any particular route or function that is causing it.
What is the best way to diagnose this problem?
I looked at node-inspector with the v8-profiler and it gave me the same error that is reported here https://github.com/dannycoates/v8-profiler/issues/10
You can profile your app with node-tick.
sudo npm -g install tick
node --prof ./app.js
node-tick-processorand explain results