Tracking Meteor CPU Usage with Kadira
You might have seen the EventLoop Utilization chart in our Dashboard. But, it was not correctly working across different hosting platforms. Actually, that value does not reflect any meaning in some situations.
So, we've replaced EventLoop Utilization with CPU Usage. It's the actual percentage of CPU spent on your app. Still, you need to be careful with analyzing CPU Usage because, some hosting providers have implemented CPU restrictions. But you can see the correct CPU Usage of your app.
Please upgrade kadira smart package in order to track CPU Usage. Apply following code:
How do we track CPU Usage?
There is no direct API to track CPU usage of your app within your app. But, we are using usage npm module for that. In Linux and Solaris, it uses the /proc filesystem to read the CPU usage. So, it is very efficient.
Have a good time with improving your application.