podman-desktop: High CPU usage (60-90%) with nothing running
Bug description
Podman Desktop if left to run for extended amount of time will start consuming 60-90% of the CPU that can’t be reclaimed by stopping all containers and extensions. Seems like some sort of process leak. It never resolves itself unless you restart podman desktop.
Operating system
Windows 11 - (10.0.19045.4291)
Installation Method
Installer from website/GitHub releases
Version
1.10.2 -> 1.12.0
Steps to reproduce
Run podman desktop with some pods and containers running, lock computer and let it run, come back a few hours later and find that computer is running very slow because podman desktop is consuming 60-80% cpu doing nothing.
Relevant log output
No response
Additional context
Podman Desktop processes using CPU:
"C:\Users\<redacted>\AppData\Local\Programs\podman-desktop\Podman Desktop.exe" --type=utility --utility-sub-type=proxy_resolver.mojom.ProxyResolverFactory --lang=en-US --service-sandbox-type=service --user-data-dir="C:\Users\<redacted>\AppData\Roaming\Podman Desktop" --field-trial-handle=12752,i,8218083416144456036,9514233539989507888,262144 --enable-features=kWebSQLAccess --disable-features=SpareRendererForSitePerProcess,WinDelaySpellcheckServiceInit,WinRetrieveSuggestionsOnlyOnDemand --variations-seed-version --mojo-platform-channel-handle=12336 /prefetch:8
There are 12 of these processes all using 5-6% CPU.
I have a proxy set and am behind a corporate VPN if it matters.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 20 (2 by maintainers)
it’s just doing in the background
podman.exe --versionandpodman.exe machine list --format jsonover and over in a loop to refresh the interface with new data probably basically it’s just very poor software design choice on low powered laptops that indeed creates 20%-40% cpu load for running those commands every few seconds, with nothing running also podman-desktop is another “Electron” app that means another 200-400 megs of disk space wasted on another copy of “Chromium + Node”, i guess developer’s choices are getting dumber and dumber in spite the fact they have better and better choices available to them for this kind of apps https://github.com/sudhakar3697/awesome-electron-alternativesThis still happens on the latest version of podman and podman desktop.
Might be a chromium upstream issue. Similar issue occurring in CEF https://github.com/chromiumembedded/cef/issues/3620
It could also be an issue with how electron & CEF is using the API that calls: https://chromium.googlesource.com/chromium/src/+/fe70d14cbee0ffc0c82658e1bc6469e2f567c266/services/network/public/mojom/network_context.mojom
Hello could you paste if you have some logs ? Light bulb in the statusbar