I'm working on a project that has a couple of persistent processes that run in node.js. As I'm adding to the project, I'd like to be able to start charting the memory usage of each process over time as part of my debugging process.
I'm aware this might not even specifically be a node.js question. My knowledge of the various tools to get this particular kind of job done is sparse and I need some direction.
My production environment is an Ubuntu 11.04 server instance, and my dev machine runs Snow Leopard.
What kinds of tools should I be looking at?
From inside of your node process, you can run
process.memoryUsage()
Then you can feed those three values into your data collection / graphing system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With