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.
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.
Totally agree. The Mac port of OneDrive is atrocious. There is just no excuse for memory leaks of this size - 10s of GB are very common, which brings any system to its knees. It is slow, buggy and bloated. Not too sure how we ask Microsoft to lift its game by a feature request, but there you go.
Same issue, but it does happen with all Microsoft products on my Mac. OneDrive eats memory, Outlook eats memory, Excel eats memory. Been like that since we switched to o365 about 18 months ago.
With recent updates it is getting worse and worse and worse. On my iMac that has only 16GB RAM it used to use up 9GB. A few days ago I ran it to sync some new files and forgot to kill it afterwards. One day later it is taking up 90GB memory as shown in Activity Monitor. Whole Mac slowed to a crawl until I managed to kill it.
This is a prevalent issue and needs to be addressed. OneDrive works fine on Windows, but the experience is absolutely terrible on macOS and iOS.