Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Agent reports "High CPU utilization" when running inside LXC

Agent reports "High CPU utilization" when running inside LXC

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 59.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    B
    Borgso
    wrote on last edited by
    #1

    We have a few nodes inside LXC on Proxmox.
    They get stuck on "High CPU utilization (100.000000%)" when CPU load hit that, but does not leave 100% before shutdown LXC and start again.

    Looking at load avg, it isnt having much work todo.
    How does NetXMS agent measure the CPU load?

    16 CPU cores 32 Threads

    @proxmox:~$ w
     07:39:43 up 15 days,  9:28,  1 user,  load average: 0.59, 0.64, 0.72
    
    1 vCPU
    @lxc01:~$ w
     07:36:43 up 1 day, 12:02,  1 user,  load average: 0.64, 0.73, 0.77
    
    1 vCPU
    @lxc02:~$ w
     07:38:35 up 1 day, 13:18,  2 users,  load average: 0.59, 0.64, 0.73
    

    lxc01.PNG

    lxc02.PNG

    proxmox.PNG

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Looks interesting. Does it happens for all LXC containers on Proxmox or only for some of them? What is Proxmox version and what are the systems that are insde the containers?

      1 Reply Last reply
      0
      • B
        B
        Borgso
        wrote on last edited by
        #3

        Latest proxmox 6.1 and up2date with apt.
        Containers are Ubuntu 18.04.4 also up2date with apt.

        Does not happen with all lxc in the cluster.
        Had 2 out of 3 on same proxmox node having this when reporting.
        It happens randomly, but it seems to hang after the containers have had a big load.

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          NetXMS takes CPU load information from /proc/stat. We just read this file once per second, calculate deltas and divide the deltas by sum of them.
          Please run below command on a container that got into that state and share the output:

          n=1; while [ $n -le 60 ]; do cat /proc/stat | grep cpu0; sleep 1; n=$((n+1)); done
          

          Then restart the container and get these stats again so we could have some data for comparison.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups