2

Update - Sorting by running htop --sort PERCENT_CPU

Snippet of processes running htop --sort PERCENT_CPU


I have a Ubuntu 18.04.3 Droplet running on DigitalOcean.

The CPU seems to be at a constant ~100%.

I have tried the following to find out why:

  • Running the top command

    %Cpu(s): 0.0 us, 12.4 sy, 87.0 ni, 0.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st

  • Running the htop command

I have read the following tutorials:

This is a very small site with a single API.

Am I missing something or is there an underlying issue?

Thanks

0

Replying as answer since I can't comment

If you sort by CPU usage with htop --sort PERCENT_CPU the process consuming your CPU time should be at the very top of the list (make sure you're running it as root [sudo] so you can see the information for all processes). If you update your question with what you see there we can help further.

  • 1
    Thanks for the reply, updated with a link to a snippet running htop --sort PERCENT_CPU (sorry I can't add images directly yet!) – Wayne Sep 15 '19 at 20:10
  • Oh sorry that's my bad, I didn't realize those links here screenshots 🤦 It is worth noting that all that blue in the CPU graph is low priority workloads. I think that's indicative of your unused CPU resources being allocated to a noisy neighbor. Checking my facts now... – Gary Sep 15 '19 at 20:18
  • I can't find anything concrete about how DO go about stealing CPU. The fact that ni is so high but st is zero all while top shows nothing using excessive CPU perplexes me. I'm sorry I can't be of more help ☹ – Gary Sep 15 '19 at 20:29
  • 1
    No worries, the screenshot links weren't obvious, just updated to hopefully make them clearer. It's confusing me too, but thanks for looking into it, much appreciated :-), I'll keep digging and see how we go! – Wayne Sep 15 '19 at 20:54

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.