Machine: 8 Core processor with Centos 6.7
I am using node.js, PHP-FPM, NGINX, Redis, MongoDB.
I have checked with stopping all services created my me and PHP-FPM, NGINX, Redis, MongoDB processes but still getting 100%ni and 41% load average.
my node.js code sending files to another server using htpp request.
How can I check which process is getting more CPU and why?
Best Answer
Without any further information, it is hard to say.
I'd guess you just have too much IO which is a common problem when databases are not configured correctly.
You can use
iotop
to see which processes use most IO and useiostat
to see which partition has how much IO utilization.