NOTE: This is on Windows.
I have an application that is started as pm2 start index.js --name dvc -- config.json
. Then, I started a new command window to monitor the application pm2 monit
. To test the application, I am using the Runner option in Postman where, the number of iterations is set to 1000 with a delay of 0 ms.
In pm2 monit
window, the CPU % remains between 0 and 11%. In Task Manager, the node.exe
process shows CPU % in 20s. The Process Explorer shows the CPU utilisation close to values as reported by pm2 monit
. So, I am not able to conclude exactly what is the CPU utilisation.
Can you please advise?
I would recommend looking into Windows Performance Monitor instead, it exposes more precise counters
perfmon
in "Search" or "Run" boxes and click "Enter")Process
from the "Available counters" and search for node
You should see charts for different counters (including, but not limited to CPU usage)
Be aware of following: