On Mon, Oct 10, 2016 at 1:43 AM, Bgsosh <[email protected]> wrote: > Hi, > > I'm having a tough time tracking down an issue we currently have in > production. Our node processes will sometimes suddenly spike in CPU usage, > and then stay pegged at 100% until restarted. > > I'm not able to reproduce on development machine. Could anyone offer any > tips for tracking this down? Any advice would be appreciated as I'm > currently not getting enough sleep! > > Thank you > > Bg
`node --perf_basic_prof app.js`, then `perf top -p <pid>` when it starts to busy-loop. That assumes you run Linux and your copy of node is new enough to have perf support. If that isn't the case, you now have a good reason to make the switch. :-) -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAHQurc_xgRve6PM9iWo9-8bLMKYg9P4zx8R35WkTYt5SyE4s4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
