3

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?

1 Answer 1

3

From inside of your node process, you can run

process.memoryUsage()

Then you can feed those three values into your data collection / graphing system.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.