Runtime Broker was driving me nuts

Colif

Win 11 Master
its fixed now I think, but last three days I have been getting random attacks of runtime broker using 25% CPU randomly and eating 1.9 gb of ram before releasing it. It was associated with Onedrive activity. I made the normal changes that stop the runtime broker from running but it kept going.

Then I remembered I had played some music last week and since this user is only new, I hadn't set a default music player so it had loaded Groove and then groove proceeded to gather all my music files. I closed window and forgot all about it since I then loaded Foobar2000 and set it up.

I just checked, Groove was set to get music off Onedrive as well as locally, so must have a timer when it goes to check the music folders I have on Onedrive to see if anything new. Removing Onedrive from folder list seems to have stopped Runtime broker.

It wasn't a big problem, just a curious one as it would do it for about 20 minutes and then just stop as suddenly as it started.

This might help someone figure out same problem :)
 
I thought I fixed it, but its run twice today again.

Win 10 won't let me change Groove as default media player... hmm, seems it was looking at Onedrive again. I know I changed that yesterday, will have to look tomorrow now.
 
Here's what Microsoft says:

" Runtime Broker is a Windows process in Task Manager that helps manage permissions on your PC for apps from Windows Store. It should only use a few megabytes of memory, but in some cases, a faulty app might cause Runtime Broker to use up to a gigabyte of RAM or more.
If your RAM use is high and your PC is running slowly, an app may be the cause of the problem. Press Ctrl+Shift+Esc to open Task Manager and then, on the Processes tab, check to see how much memory Runtime Broker is using. If it’s using more than 15% of your memory, you probably have an issue with an app on your PC. To stop Runtime Broker from using so much memory, select Runtime Broker in the list, select End task to close Runtime Broker, and then restart your computer."

A Google search turned up the above at: https://support.microsoft.com/en-us/instantanswers/77532366-04f3-d020-40f3-a1a8f7de0ea5/runtime-broker-is-using-too-much-memory
 
technically its more a nuisance than a problem, it uses 1.9gb at max (and I have 16gb so I don't notice any slowdown) and about 17% CPU, and it does give it back after its used.

The last step I haven't taken is remove the app using powershell but its groove, win 10 likely to just reinstall it again and no guarantees it will have forgotten its previous settings when it returns.

Every start up it forgets the folders I want it to use, it keeps re adding Onedrive into the list and that is what appears to make it use runtime broker every few hours. I have since set it to not check online for Media info and PC has finally let me use Foobar as the default music player