Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current stack trace of running node js from outside

Tags:

node.js

I have a node application that periodically spikes to 100% on my production server. I would like to be able to send a signal to the node process that will give me a stack trace so I can find where in the code the problem is. Is there any easy way to do this?

My server is ubuntu 14.04.2 and I'm running node 0.12.2

like image 655
Dirk Avatar asked Nov 09 '22 14:11

Dirk


1 Answers

I was able to get a stack trace by compiling my own version of node and v8: https://github.com/joyent/node/issues/25263

like image 96
Dirk Avatar answered Nov 15 '22 05:11

Dirk