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.
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.
Виталий Гречачин commented
Same problem. I'm tired of restarting Onedrive.
40 GB of swap usage....
This is a serious memory leak.
I've been an avid o365 user for a while, i just switched to a mac (many reasons) and just find the office apps are the ones slowing me down. come on.. Currently one drive is consuming >50% of my memory and i cant work. grr.
Bryan So commented
From OneDrive technical support team: "As per the screenshot it seems that you are trying to sync 54.1 GB of data so that is one of the reason it is using your computers memory. If you do not wish that OneDrive should not use your memory then we suggest you to sync the data in small chunks."
(Although that doesn't explain why the memory keeps increasing over several days even with no syncing happening)
Bryan So commented
In addition to the memory leak... it's a serious mistake to enable Mac OS Finder integration. See screenshot. 4 processes. 3 of them 1.5GB each. The 4th almost 1GB. Why? Why? Why? The OneDrive team has no programming skill whatsoever.