Skip to content

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

Closed

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

Activity

  1. nicks commented on Jun 21, 2022

    @nicks

    Thanks for the report! We're investigating this.

  2. trungutt commented on Jun 22, 2022

    @trungutt

    Hi @garyng could you please try out this custom build to see if it could resolve the issue?

    https://desktop-stage.docker.com/win/main/amd64/81513/Docker%20Desktop%20Installer.exe

  3. Abi79 commented on Jun 24, 2022

    @Abi79

    Hi @trungutt , I am not OP but I can confirm the fix worked on our side.

  4. maxcleme commented on Jun 30, 2022

    @maxcleme
    Member

    This issue has been fixed in latest release, please consider updating to latest version and give us your feedback!

    4.10.0 Release notes

  5. docker-robott commented on Jul 30, 2022

    @docker-robott
    Collaborator

    Closed issues are locked after 30 days of inactivity.
    This helps our team focus on active issues.

    If you have found a problem that seems similar to this, please open a new issue.

    Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
    /lifecycle locked

  6. locked and limited conversation to collaborators on Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions