Monday, 1 May 2017

How to profile node that is launched by gulp serve?

I run gulp serve from my Windows command-line to spin up a local "node server". The node server basically mimics our live site and I can develop against it. Lately this node server has been getting out of control. Some times it's using 400MB of memory and CPU usage is 93%. The CPU usage kinda creeps up as I visit web pages on the node server. There are other team members that don't have this issue.

I was told I can use node tick to figure out the problem. But in the node tick docs it doesn't say how to use it with node that's launched by gulp serve. How can I use node tick with gulp serve? Or how can I troubleshoot why this node launched by gulp is hogging CPU and RAM?



via Ryan

No comments:

Post a Comment