MauriceNino / dashdot

A simple, modern server dashboard, primarily used by smaller private servers
https://getdashdot.com/
MIT License
2.65k stars 101 forks source link

[Bug] Cpu 100% usage #940

Closed Victor333Huesca closed 10 months ago

Victor333Huesca commented 11 months ago

Description of the bug

Running dashdot from source on windows 11 uses 100% cpu. This seems to be coming from dashdot somehow spawning multiple powershell instances.

Dashdot was running fine for several days, it appeared quite randomly and is now reproducible even across reboots.

Here is a demo of the behavior. Dashdot-bugreport-2023-11-19-cpu_usage

How to reproduce

Hard to tell, simply starting dashdot causes the issue now. This wasn't the case when installed a week ago. I don't see any change I'would have done that could have created the issue.

Relevant log output

C:\Binaries\Dashdot>yarn start 
listening on *:3001
Using default network interface with no modifications
Using host os version from "/etc/os-release"
Static Server Info: {
  os: {
    arch: 'x64',
    distro: 'Microsoft Windows 11 Professionnel',
    kernel: '10.0.22631',
    platform: 'Windows',
    release: '10.0.22631',
    uptime: 2673.062,
    dash_version: 'unknown',
    dash_buildhash: '1be097b9541c5778fe38edbe45986e0f9e15bd8b'
  },
  cpu: {
    brand: 'AMD',
    model: 'Ryzen 9 5950X',
    cores: 16,
    ecores: 0,
    pcores: 32,
    threads: 32,
    frequency: 3.4
  },
  ram: {
    size: 34275270656,
    layout: [
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 },
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 },
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 },
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 }
    ]
  },
  storage: [
    {
      size: 1000202273280,
      disks: [ { device: '\\\\.\\PHYSICALDRIVE5', brand: '', type: 'NVMe' } ]
    },
    {
      size: 1000202273280,
      disks: [
        {
          device: '\\\\.\\PHYSICALDRIVE1',
          brand: 'Western Digital',
          type: 'HD'
        }
      ]
    },
    {
      size: 21220893388800,
      disks: [ { device: '\\\\.\\PHYSICALDRIVE6', brand: '', type: 'HD' } ]
    }
  ],
  network: {
    interfaceSpeed: 1000,
    speedDown: 0,
    speedUp: 0,
    type: 'Wired',
    publicIp: ''
  },
  gpu: {
    layout: [ { brand: 'NVIDIA', model: 'GeForce RTX 3080', memory: 12288 } ]
  },
  config: {
    port: 3001,
    running_in_docker: false,
    accept_ookla_eula: true,
    use_network_interface: undefined,
    speed_test_from_path: undefined,
    fs_device_filter: [],
    fs_type_filter: [
      'cifs',
      '9p',
      'fuse.rclone',
      'fuse.mergerfs',
      'nfs4',
      'iso9660',
      'fuse.shfs'
    ],
    fs_virtual_mounts: [],
    disable_integrations: false,
    show_dash_version: 'icon_hover',
    show_host: true,
    custom_host: 'System Dashboard',
    page_title: 'System Dashboard - ...',
    use_imperial: false,
    always_show_percentages: true,
    widget_list: [ 'os', 'cpu', 'gpu', 'ram', 'storage', 'network' ],
    os_label_list: [ 'os', 'arch', 'up_since' ],
    cpu_label_list: [ 'brand', 'model', 'cores', 'threads', 'frequency' ],
    storage_label_list: [ 'brand', 'type', 'size', 'raid' ],
    ram_label_list: [ 'brand', 'type', 'size', 'frequency' ],
    network_label_list: [
      'type',
      'speed_up',
      'speed_down',
      'interface_speed',
      'public_ip'
    ],
    gpu_label_list: [ 'brand', 'model', 'memory' ],
    os_widget_grow: 2.5,
    os_widget_min_width: 300,
    enable_cpu_temps: false,
    cpu_widget_grow: 4,
    cpu_widget_min_width: 700,
    cpu_shown_datapoints: 42,
    cpu_poll_interval: 1000,
    storage_widget_items_per_page: 3,
    storage_widget_grow: 3.5,
    storage_widget_min_width: 500,
    storage_poll_interval: 60000,
    ram_widget_grow: 4,
    ram_widget_min_width: 700,
    ram_shown_datapoints: 42,
    ram_poll_interval: 1000,
    speed_test_interval: 240,
    network_widget_grow: 6,
    network_widget_min_width: 500,
    network_shown_datapoints: 20,
    network_poll_interval: 1000,
    gpu_widget_grow: 6,
    gpu_widget_min_width: 1100,
    gpu_shown_datapoints: 20,
    gpu_poll_interval: 1000,
    override: {
      os: undefined,
      arch: undefined,
      cpu_brand: undefined,
      cpu_model: undefined,
      cpu_cores: undefined,
      cpu_threads: undefined,
      cpu_frequency: undefined,
      ram_brand: undefined,
      ram_size: undefined,
      ram_type: undefined,
      ram_frequency: undefined,
      network_type: undefined,
      network_speed_up: undefined,
      network_speed_down: undefined,
      network_interface_speed: undefined,
      network_public_ip: undefined,
      storage_brands: {},
      storage_sizes: {},
      storage_types: {},
      gpu_brands: [],
      gpu_models: [],
      gpu_memories: []
    }
  }
}
Running speed-test (this may take a few minutes)...
First measurement [CPU]: [
  { load: 65.8956991085257, temp: 0, core: 0 },
  { load: 67.05594144008684, temp: 0, core: 1 },
  { load: 67.45389303377759, temp: 0, core: 2 },
  { load: 64.4890209089093, temp: 0, core: 3 },
  { load: 62.195717390211335, temp: 0, core: 4 },
  { load: 61.47677855332173, temp: 0, core: 5 },
  { load: 61.0848152085791, temp: 0, core: 6 },
  { load: 60.63005012526646, temp: 0, core: 7 },
  { load: 63.95549688995794, temp: 0, core: 8 },
  { load: 63.411332055912695, temp: 0, core: 9 },
  { load: 62.86729779949931, temp: 0, core: 10 },
  { load: 62.25052818335567, temp: 0, core: 11 },
  { load: 61.44628572088936, temp: 0, core: 12 },
  { load: 60.99965651391492, temp: 0, core: 13 },
  { load: 60.707382354227, temp: 0, core: 14 },
  { load: 60.37694449262274, temp: 0, core: 15 },
  { load: 61.02930628539023, temp: 0, core: 16 },
  { load: 60.49421738713446, temp: 0, core: 17 },
  { load: 59.96929210918477, temp: 0, core: 18 },
  { load: 59.709242301445045, temp: 0, core: 19 },
  { load: 60.09635815198829, temp: 0, core: 20 },
  { load: 59.876774178385716, temp: 0, core: 21 },
  { load: 60.21342675904181, temp: 0, core: 22 },
  { load: 59.97114179387273, temp: 0, core: 23 },
  { load: 60.14702962385405, temp: 0, core: 24 },
  { load: 59.93772513903437, temp: 0, core: 25 },
  { load: 60.36947366416191, temp: 0, core: 26 },
  { load: 60.087663416123235, temp: 0, core: 27 },
  { load: 60.04518502242809, temp: 0, core: 28 },
  { load: 59.96483645287718, temp: 0, core: 29 },
  { load: 59.96117265859083, temp: 0, core: 30 },
  { load: 59.756062086506404, temp: 0, core: 31 }
]
First measurement [RAM]: 23571341312
First measurement [GPU]: { layout: [ { load: 20, memory: 13 } ] }
First measurement [Storage]: [ 869130772480, 720135204864, 7362880765952 ]
Speed-test completed successfully [ookla] {
  speedDown: 249809536,
  speedUp: 618320264,
  publicIp: '...'
}

C:\Binaries\Dashdot>yarn start 
listening on *:3001
Using default network interface with no modifications
Using host os version from "/etc/os-release"
Static Server Info: {
  os: {
    arch: 'x64',
    distro: 'Microsoft Windows 11 Professionnel',
    kernel: '10.0.22631',
    platform: 'Windows',
    release: '10.0.22631',
    uptime: 2673.062,
    dash_version: 'unknown',
    dash_buildhash: '1be097b9541c5778fe38edbe45986e0f9e15bd8b'
  },
  cpu: {
    brand: 'AMD',
    model: 'Ryzen 9 5950X',
    cores: 16,
    ecores: 0,
    pcores: 32,
    threads: 32,
    frequency: 3.4
  },
  ram: {
    size: 34275270656,
    layout: [
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 },
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 },
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 },
      { brand: 'Kingston', type: 'DDR4', frequency: 2400 }
    ]
  },
  storage: [
    {
      size: 1000202273280,
      disks: [ { device: '\\\\.\\PHYSICALDRIVE5', brand: '', type: 'NVMe' } ]
    },
    {
      size: 1000202273280,
      disks: [
        {
          device: '\\\\.\\PHYSICALDRIVE1',
          brand: 'Western Digital',
          type: 'HD'
        }
      ]
    },
    {
      size: 21220893388800,
      disks: [ { device: '\\\\.\\PHYSICALDRIVE6', brand: '', type: 'HD' } ]
    }
  ],
  network: {
    interfaceSpeed: 1000,
    speedDown: 0,
    speedUp: 0,
    type: 'Wired',
    publicIp: ''
  },
  gpu: {
    layout: [ { brand: 'NVIDIA', model: 'GeForce RTX 3080', memory: 12288 } ]
  },
  config: {
    port: 3001,
    running_in_docker: false,
    accept_ookla_eula: true,
    use_network_interface: undefined,
    speed_test_from_path: undefined,
    fs_device_filter: [],
    fs_type_filter: [
      'cifs',
      '9p',
      'fuse.rclone',
      'fuse.mergerfs',
      'nfs4',
      'iso9660',
      'fuse.shfs'
    ],
    fs_virtual_mounts: [],
    disable_integrations: false,
    show_dash_version: 'icon_hover',
    show_host: true,
    custom_host: 'System Dashboard',
    page_title: 'System Dashboard - ...',
    use_imperial: false,
    always_show_percentages: true,
    widget_list: [ 'os', 'cpu', 'gpu', 'ram', 'storage', 'network' ],
    os_label_list: [ 'os', 'arch', 'up_since' ],
    cpu_label_list: [ 'brand', 'model', 'cores', 'threads', 'frequency' ],
    storage_label_list: [ 'brand', 'type', 'size', 'raid' ],
    ram_label_list: [ 'brand', 'type', 'size', 'frequency' ],
    network_label_list: [
      'type',
      'speed_up',
      'speed_down',
      'interface_speed',
      'public_ip'
    ],
    gpu_label_list: [ 'brand', 'model', 'memory' ],
    os_widget_grow: 2.5,
    os_widget_min_width: 300,
    enable_cpu_temps: false,
    cpu_widget_grow: 4,
    cpu_widget_min_width: 700,
    cpu_shown_datapoints: 42,
    cpu_poll_interval: 1000,
    storage_widget_items_per_page: 3,
    storage_widget_grow: 3.5,
    storage_widget_min_width: 500,
    storage_poll_interval: 60000,
    ram_widget_grow: 4,
    ram_widget_min_width: 700,
    ram_shown_datapoints: 42,
    ram_poll_interval: 1000,
    speed_test_interval: 240,
    network_widget_grow: 6,
    network_widget_min_width: 500,
    network_shown_datapoints: 20,
    network_poll_interval: 1000,
    gpu_widget_grow: 6,
    gpu_widget_min_width: 1100,
    gpu_shown_datapoints: 20,
    gpu_poll_interval: 1000,
    override: {
      os: undefined,
      arch: undefined,
      cpu_brand: undefined,
      cpu_model: undefined,
      cpu_cores: undefined,
      cpu_threads: undefined,
      cpu_frequency: undefined,
      ram_brand: undefined,
      ram_size: undefined,
      ram_type: undefined,
      ram_frequency: undefined,
      network_type: undefined,
      network_speed_up: undefined,
      network_speed_down: undefined,
      network_interface_speed: undefined,
      network_public_ip: undefined,
      storage_brands: {},
      storage_sizes: {},
      storage_types: {},
      gpu_brands: [],
      gpu_models: [],
      gpu_memories: []
    }
  }
}
Running speed-test (this may take a few minutes)...
First measurement [CPU]: [
  { load: 65.8956991085257, temp: 0, core: 0 },
  { load: 67.05594144008684, temp: 0, core: 1 },
  { load: 67.45389303377759, temp: 0, core: 2 },
  { load: 64.4890209089093, temp: 0, core: 3 },
  { load: 62.195717390211335, temp: 0, core: 4 },
  { load: 61.47677855332173, temp: 0, core: 5 },
  { load: 61.0848152085791, temp: 0, core: 6 },
  { load: 60.63005012526646, temp: 0, core: 7 },
  { load: 63.95549688995794, temp: 0, core: 8 },
  { load: 63.411332055912695, temp: 0, core: 9 },
  { load: 62.86729779949931, temp: 0, core: 10 },
  { load: 62.25052818335567, temp: 0, core: 11 },
  { load: 61.44628572088936, temp: 0, core: 12 },
  { load: 60.99965651391492, temp: 0, core: 13 },
  { load: 60.707382354227, temp: 0, core: 14 },
  { load: 60.37694449262274, temp: 0, core: 15 },
  { load: 61.02930628539023, temp: 0, core: 16 },
  { load: 60.49421738713446, temp: 0, core: 17 },
  { load: 59.96929210918477, temp: 0, core: 18 },
  { load: 59.709242301445045, temp: 0, core: 19 },
  { load: 60.09635815198829, temp: 0, core: 20 },
  { load: 59.876774178385716, temp: 0, core: 21 },
  { load: 60.21342675904181, temp: 0, core: 22 },
  { load: 59.97114179387273, temp: 0, core: 23 },
  { load: 60.14702962385405, temp: 0, core: 24 },
  { load: 59.93772513903437, temp: 0, core: 25 },
  { load: 60.36947366416191, temp: 0, core: 26 },
  { load: 60.087663416123235, temp: 0, core: 27 },
  { load: 60.04518502242809, temp: 0, core: 28 },
  { load: 59.96483645287718, temp: 0, core: 29 },
  { load: 59.96117265859083, temp: 0, core: 30 },
  { load: 59.756062086506404, temp: 0, core: 31 }
]
First measurement [RAM]: 23571341312
First measurement [GPU]: { layout: [ { load: 20, memory: 13 } ] }
First measurement [Storage]: [ 869130772480, 720135204864, 7362880765952 ]
Speed-test completed successfully [ookla] {
  speedDown: 249809536,
  speedUp: 618320264,
  publicIp: '...'
}

Info output of dashdot cli

INFO
=========
Yarn: 3.6.0
Node: v21.1.0
Dash: unknown

Cwd: C:\Binaries\Dashdot
Hash: 1be097b9541c5778fe38edbe45986e0f9e15bd8b

In Docker: false
In Podman: false
In Docker (env): $DASHDOT_RUNNING_IN_DOCKER

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Where is your instance running?

Desktop PC (Windows)

Additional context

I can provide more detailed logs if needed.

MauriceNino commented 10 months ago

Thank you for looking into the issue, merged now and should be released soon!

Also sorry for the huge delay, hadn't had any time for dashdot recently.