Skip to content

Docker Desktop kept polling VM memory usage in the background, resulting in high CPU usage #12780

@garyng

Description

@garyng
  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: -

Seems like Docker Desktop kept calling powershell to get the VM memory usage:
image

image

powershell "(Get-Counter -Counter \"\Hyper-V Dynamic Memory VM(DockerDesktopVM)\Average Pressure\", \"\Hyper-V Dynamic Memory VM(DockerDesktopVM)\Physical Memory\", \"\Hyper-V Hypervisor Virtual Processor(dockerdesktopvm:*)\% Guest Run Time\").CounterSamples.CookedValue"

This results in constant high CPU usage.

Information

  • Windows Version: Windows 10 21H2 19044.1708
  • Docker Desktop Version: 4.9.0
  • WSL2 or Hyper-V backend? HyperV
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: bare metal

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

Steps to reproduce the behavior

  1. Open Docker Desktop
  2. Check CPU usage

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions