-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Package Manager Server runs on high CPU #3667
Comments
Same here. The process keeps running after I close its parent (a |
Same here. WindowsPackageManagerServer.exe is using 25% of the CPU and can't be killed. |
Same here, rather not have my OS frying my CPU |
Same here ... |
It is the same with me... when I end the process it is restarted immediately. Environment
|
Not sure if it helps anyone, but I left it running over night, and then it was quiet the next day. |
Had this same issue. You've got a pretty outdated version, update "App Installer" via the Microsoft Store or WinGet as described here and the problem should go away. |
Install the Windows Performance Toolkit from the Windows ADK (unselect all other entries) and capture a ETW trace by running Zip the ETL + PDB Folder(s) and share the zip via OneDrive link here. |
mine is using 10-15%. Here's the link to my etl+pdb if it helps. |
CPU Usage (Sampled) is somehow missing, precise stack shows usage of WindowsPackageManager.dll, but the PDB is missing, so a team member which has access to the PDB should take a look at it. |
I can report a high CPU issue as well. It was running for a really long time at high 100%, while I am running a pretty modern desktop system. However after a lot of minutes, it eventually stopped and went quiet, without any intervention by me (I deliberately decided to wait a long time to check if it would eventually stop indeed). This gives me the impression that the process does not truely hang an infinate loop, but that it's performing some task just really, really inefficiently (is it doing some kind of super heavy search, like through the entire registry or something?). |
We believe we've identified the source of the high CPU events. We're looking to make changes in WinGet to lower the impact as well as working with partner teams to help make their calls and calling pattern more efficient. |
Same here :( |
hello all i just noticed this program today, also taking much cpu, after i removed some office updates from yesterday, it went away; will keep an eye on task manager, but since removing the updates and a reboot and while creating the account here and typing, the program didnt came back so far. |
update, it came back. damn |
hello there, I have the same problem, could anyone solve it?? |
The last time I had this problem, what I did was restart Windows and after that it worked fine, at least until now... |
Ok, you have an ETA on a fix for this? And please, not one that "lowers the impact", but one that fixes the issue. |
Same issue here. Started pretty much right after booting up, on a machine that I haven't used since last Friday. Process has accumulated about 10min of CPU time (100% usage on a single core) and as I am writing this, it has now finally stopped. I know this is like talking to a wall, but the amount of "random" background processes with zero UI indication of what is happening has really gotten out of hand in recent years. The more stuff constantly running on the background, the bigger the potential of things going wrong or eating up CPU time for no apparent reason. Yes, user experience (in terms application performance) is not affected too much since most code still runs single-threaded and modern computers are routinely equipped with more than half a dozen cores. But especially on mobile/laptop devices, this causes a large nuisance due to high noise (for no visible reason), causing distraction and reduced battery life. |
what else seems to have dialed this down was to right click the sub process in task manager, go to details, right click again, set priority, below normal, reboot and when it came back, it didnt take as much cpu as before. |
This problem hit today on a box that was just started and had not been up since last week. Seems like an update is to blame. The problem appears to be its continual connection with akami and an IP at Edge and MS Office 365 were two of the updates I saw come by. This needs to be fixed. |
This is very bad behaviour. Background update processes should never be this disruptive... This is bad oversight... |
same porcodio |
How to remove the modern App WinGET: open PowerShell as admin and enter the following command: PS: i don't know why but the editor removed 2 asterisks from the command above, one before Microsoft and one after AppInstaller. You must insert them. |
Agreed. Effectively deleting the file on individual machines for those users just smart enough to know how to take ownership of a system file and renaming it is not a solution. It leaves every other windows user stuck with the problem. Good lord. Think of the 99.9+% of the installed base that has no clue about hacking file permissions. Think of your grandmother or grandfather or child puzzled, concerned their computer is broken because it is busy for hours on end. |
While there's no patch/solution, another option is simply "suspend" the process using windows resource monitor, instead of killing it. |
Hey all. We've identified an area where we can reduce the CPU utilization for this calling pattern. We're working on an update, and we'll publish it as soon as it's ready. Update: We're performing some testing now to see if we can at least get some anecdotal measurements for the improvement. |
Ok, this is weird, I found another possible trigger:
In my case the logfile in |
Hey all, we've identified a couple of areas where we're able to make substantial improvements in the client. Our initial testing is showing a solid reduction in the time it takes for these processes to complete. It amounts to 5/6 of the time. Something on the order of ~1000 ms per iteration to ~130 ms per iteration on the hardware we're testing on. I'm expecting we will push this update out early next week if the remaining testing all passes. |
Good job! Do you have an explanation for the fact it doesn't affect most machines? What is (are) the trigger(s) for that CPU consumption? |
this is what I also would like to know. I run winget daily and never saw such a high CPU usage. I run it from classic cmd.exe on x64 Windows 10/11 German. |
I appreciate the optimization effort, and the initial results look promising. |
Like @raphaelcardoso I'm sceptical. For me, the process hung for at least 30 minutes before I managed to finally kill it by uninstalling some things. Endless loop * 1/6 is still an endless loop. |
[OFF-TOPIC]Shifting the focus here, in situations like this where it's causing a single logical processor to run at 100% capacity (25% of my CPU), there should be a fast, automated rollback process. It might be achievable using components already implemented in advanced technologies like Click-to-Run, containers, MDM, or the Microsoft Store. In an emergency, authors of Microsoft Store apps should be able to revert to a previous version almost instantaneously, triggering a deployment as lightweight as sending low-priority push notifications and symlink swapping. |
I tried this command and after a few minutes I had no more Internet! I had to reinstall Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle (downloaded thanks to my phone) to get Internet back |
ok, Microsoft made some changes in #3808 to improve it by caching RegEx calls. I also got this cpu usage now but only for a shorter time after running winget upgrade and here I saw icu regex calls. So hopefully we get this fix sone in an update. |
I didn't encounter this problem after uninstalling this package. |
No, I didn't try a restart. |
Windows 10 Pro. Restarting Windows and logging in with Administrator account solves the problem. Some process (Wsappx ...) runs for less than a minute with a high CPU usage and then CPU usage returns to normal. After restarting with normal user "Please wait" appears (some update are being installed?) and runs fine until the next Windows update. |
Ok, that sounds very interesting, seems like something inside Windows "fixes" itself running with admin account. Do you mean a normal admin account or the "true" admin account of Windows by running What happens when you open By the way i have Windows 11 Edu and it is impossible to remove winget there with powershell. And removing winget breaks some things even in Windows 10. What did work in my case is removing the winget apps folder in |
Hey all, we've almost completed our internal testing. We will publish the update here at GitHub (for people actively seeking the update) and to Windows Insider Beta and Windows Insider Release Preview. After a few days of feedback, this will be pushed out to everyone. |
This looks promising, downgraded from pre-release version to Again as a test I manually started backup in Windows Backup app. CPU usage of WindowsPackageManagerServer.exe now stays below 10 % and finishes in less than 2 minutes. I used SystemInformer for that graph, Process Explorer should work too. Downgrading was a bit complicated and commands |
Terrific. Would you mind sharing the exact PR / commits for curious minds who want to understand what was going on? 😜 |
@denelon Would you mind sharing the exact PR / commits for curious minds who want to understand what was going on? 😜 |
|
Thank you for the link to the note on Performance Improvements related to caching. However, the note does not explain all of the network communications to akami that are associated with the package manager issue. I looked again last night in Resource Explorer while this issue was taking place, and while low in bandwidth, there was continual transmission to/from the microsoft akami servers. Windows already knows what updates have been downloaded and what updates are needed -- all updates have are completed before this package manager behavior kicks in. So what is this stream of network traffic with akami that your caching is indented to benefit? Adding that information to the 296a53d link would be very helpful. |
We will be working on getting a 1.7-preview version with the improved performance changes out next. |
Brief description of your issue
I'm not sure if this is the right place to report this, but the "WinGET COM Server" with a child process of "WindowsPackageManagerServer.exe" is using up a lot of CPU on my system.
When killed, it just respawns immediately.
I'm not the only one with this issue:
https://www.reddit.com/r/techsupport/comments/162dj42/what_is_winget_com_server/
Steps to reproduce
Not sure how to reproduce.
Expected behavior
It shouldn't run on high CPU for extended periods of time.
Actual behavior
It runs on super high CPU all the time.
Environment
The text was updated successfully, but these errors were encountered: