0

I have a server with 12 Cores Intel XEON CPU, and 128GB RAM. The server is dedicated, not a vps.

root@xx:~# lsb_release -d
Description:    Ubuntu 14.04.3 LTS

At random times the CPU is going to 100% to all cores and even in htop i don't see a process more than 4-5%

Check this image:

http://prntscr.com/98sp3m

Also is that a bit strange? Look at

Tasks: 1071, 33 thr; 350 running

What is the 350 running? Because when my CPU is going to 100% that number is going to 350, but when the CPU is normal it only says 2 Running

  • Are you sure your measurement is for all CPUs? Assuming hyperthreading and 12 cores 4% or so would be maxing one thread out. – Tim Brigham Nov 30 '15 at 19:28
  • How random are these occurrences, and do they correlate to either network or IO activity? See this question for a similar situation: serverfault.com/questions/294505/… – Andrew Henle Nov 30 '15 at 21:49
  • I'm using a NGINX + PHP FPM. What i understand is that if i have for example 200 concurrect connecitons all ok. if i have 201 my CPU goes to maximum.... – OhGodWhy Nov 30 '15 at 21:56
  • By the way, tried on CentOS 7.1 with exactly the same setup, same happened – OhGodWhy Nov 30 '15 at 21:59
1

Run

ps -eo pcpu,pid,user,args | sort -k1 -r | head -10

This should tell you the top 10 apps/threads using your cpu resources.

  • It only shows CPU usage of 6.1-7% and only on the first 2 processes, while al lthe others are 0.... I really can't understand this – OhGodWhy Nov 30 '15 at 21:33
  • Can you paste the result in a pastebin so that we can see it? – Karina Cervantes Magaña Nov 30 '15 at 21:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.