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.
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.
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)
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.
This needs to be resolved in a quick manner as it is hindering work. The switching cost of changing cloud storage providers is very low. Moving to competitors will be the next course of action if immediate measures are not taken to address this.
Thomas Heinzmann commented
20Gigs of Memory only for OneDrive 😱
Joseph Farthing commented
After a day I had 1.7gb of memory used by OneDrive. Restarting my computer takes it back down to 70mb.
I have the same issue. Considering switching to Google Drive.
Onedrive is just memory junkie. It consumes all of my RAM without many tasks!
It is amazing how video editing software uses less memory than OneDrive. There is clearly a memory leak.
[Deleted User] commented
I have the same issue. Considering switching to Google Drive.
Onedrive is just memory junkie. It consumes all of my RAM without much tasks!
It is amazing how video editing softwares use less memory than onedrive. There is clearly a memory leak.
Ben Stegink commented
Agree, this is a terrible issue yet. My OneDrive client ussualy get's up to about 11 - 12 GB of memory in a couple of days. the ONLY reason I need to reboot my Mac every few days (or close and restart OneDrive) is to get the memory back from OneDrive so I can use other applications.
I'm truly stuck. I have 200GB of photos on OneDrive that I need to restore after a crash. OneDrive (MacOS) can download a couple GB and will be unusable due to the memory leak. I can't keep doing close app, reboot, restart app a hundred times to download all photos! This is an absolute nightmare.
Guillaume Peersman commented
same here, it keeps on growing !
any fix besides restarting OneDrive periodically?
Unacceptable given the recent price hikes to office365 in Australia. Now considering moving to iCloud because the price difference is negligible now.