Fix the memory leak in the macOS OneDrive client!
There has been a serious memory leak in the OneDrive client for macOS for over a year. There are multiple posts on the OneDrive support forum about this, and I've made multiple support requests all of which have come to naught.
The symptoms are quite simple - on machines running Sierra and High Sierra the OneDrive client's memory foot print grows without ceasing over time, eventually causing the host machine to run out of memory. See attached image for memory footprint on a High Sierra running MacPro after 7 hours 39 minutes from a cold boot ,with OneDrive (latest version) running as a login in startup item.
Why this is not something that MS is prepared to fix is a mystery - but in the latest attempt to get some support the suggestion has been made that the only way to get this fixed is to propose it as a 'feature request'.
In what universe "fixing the software" is a feature request?
Anyhow - request made.
We have been working on several memory leak fixes recently. One of the main ones was fixed with Standalone version 19.086.0502.0008 and Store version 19.103.0527.0003. If you are not on one of those builds or higher, please update first. If you are still experiencing issues after updating, let us know. We will continue to focus on performance improvements, including memory utilization.
Rebecca Appleton commented
Also having this problem on 5 April 2021. Causing computer to run hot all the time, fan running hard, laptop keyboard frequently approaches being too hot to touch. At least I've finally identified what the problem is! Is this ever going to be fixed? I'd like to keep using OneDrive but it's looking like I'm going to need to replace it.
As of 31 March 2021, I am using latest version of MacOS (M1 Mac) and OneDrive. Sometimes the RAM usage goes up to near 2GB while nothing is being copied or synced. This is really ridiculous.
Microsoft, please fix the memory issue, do not force me to quite Office 365 subscription. At least let us know the status. Unbelievable it's still unsolved after several years.
Sadly its still a major issue. Just copied 7k small files to my local onedrive folder as a test and the client became unresponsive and had to use activity monitor to exit and restart it. Once restarted the sync completed fine with memory around 1.9G & VM compressed 18G! Quitting the client pinned a core at 97% and became unresponsive. Once restarted, memory falls to 0.5G.
Big Sur 11.1, Apple Silicon Onedrive 20.219.10290.0005.
I give up on OneDrive. Moving to another platform.
Hello. In my case I use Catalina..
OneDrive is using alone 2.2 GB RAM following by DropBox with 268 MB
It is time after two years make several changes!!!!
[Deleted User] commented
OneDrive is a performance killer, still.
I can confirm, that memory usage is fine now.
But: When OneDrive is launched it is a cpu performance eater. Fan is always spinning. System feels luggisch.
And: OneDrive keeps telling, "OneDrive is syncronizing". Even there is no Data to sync anymore.
This is realy cumbersome.
This has clearly not been fixed since Aug 2019, as many others have pointed out - this is still a constant problem on macOS.
macOS catalina 10.15.5
OneDrive Version 20.052.0311.0011
Activity Monitor constantly shows 99+% CPU Usage for OneDrive, no matter how many files it says it's attempting to sync. Fan goes from 0-maxed out, even when restarting and closing everything except OneDrive. Also happens in Safe Mode.
Can someone please provide a response to the multiple desperate UserVoice pleas to fix this?
Robert May commented
Just over 6 hours of uptime and OneDrive at 4.23GB memory. Please this is making my machine unusable.
Same issue as everyone else! Running latest hardward and mac os and this SHOULD NOT BE an issue.
Very Obvious commented
This is completely unacceptable! Why doesn't the "OneDrive" team grab "One" Mac and use it for 2 weeks and see how it feels to live with these issues?
jared Gardner commented
Oh please. I am one step away from abandoning OneDrive altogether, which is going to be a huge pain. Please fix this. It is literally making using my computer with Onedrive running impossible
Same here, OneDrive Client is killing the system all the time. Leaking memory permanently.
On Version 19.174.0902.0013 (Standalone)
Tried to sync 20+GB (80k files) to the cloud.
- OneDrive uses 64GB (14GB RAM + 50GB SWAP)
- distnoted uses 16GB
Please fix that
p.s. If you need help, ask your VSCode guys, they know how to hunt issues
Running 19.152.0801.0007 (Standalone) on macOS 10.14.6. OneDrive Finder Integration was using over 7GB of system RAM. Even at idle (not syncing files), I currently see two instances of the process using a total of 2GB of RAM. So evidently, the recent (August 2019) memory leak fixes did not really fix the problem.
I'm running V 19.163.0818.0004(Standalone) on Mac OSX 10.14.6. I raised a support issue and have been instructed to make comment in uservoice (here). I work for three companies all using sharepoint drive sync's via OneDrive. I'm seeing both OneDrive finder Integration service and distnoted in OSX consuming resources that are out of control. Terminating these services immediately restores space on the HDD. Never had this issue with Box.com sync tools.
I see a memory leak as well on MacOS High Sierra (10.13.6), but in different circumstances
I have my OneDrive folder on an external drive, contains around 60,000 files. App normally runs in c200mb.
If I forget to mount the physical drive and start OneDrive, then the recovery is a nightmare.
App counts up all the files to be synch'ed, this number then drops by 2 and increments by 1, drops by 2, increments by 1.... at a rate of about one of the cycles a second!
Occasionally it finds a file to sync, which is a different issue!
All the time the memory use grows, after a reduction in the number number shown as 'processing changes' by about 2-300 files its well over 20GB
When the memory use means everything else slows to a crawl then stop it and restart it. So I have to repeatedly stop the app, restart it.
I am compelled by my University to use this dreadful thing instead of Dropbox, and have got used to quitting/restarting it every couple of days. My wife, with the same MacOS and OfB versions, does not see a memory leak problem. Who knows. I'm on a MBP, she has an Air.
Mark Silberbauer commented
In the four years of using my MacBook this is the first time I've ever had to deal with an app that constantly tanks my memory capacity. I now run activity monitor and kill OneDrive (incl. finder integration) daily but I'm getting to the point where it's not worth the hassle. I've had my machine grind to a halt in the middle of teleconferences, presentations etc. Because of an obvious mem leak issue in OneDrive.
I'm using OS X Mojave.
Rodrigo Salinas commented
I have an iMac in my home and another in the office. In both of them I have to do the same every day:
- When I arrive to the the office and open my iMac, I have to shut down OneDrive client and start my working day.
- When I finish my work at the office, I start OneDrive client again so it starts syncing.
- When I arrive at home I do the same thing. I shut down OneDrive client and then I can use my iMac.
- When I finish my work at home then I can start OD again.
And so on and on... Because of the amount of memory it consumes while I am programming with tools like IntelliJ, WebStorm and Sublime.
It's so frustrating.