How to Fix OneDrive Using Excessive Memory While Syncing SharePoint Libraries
Question details
OneDrive consumes gigabytes of RAM when attempting to sync massive SharePoint document libraries containing millions of Office files.

- Product
- Microsoft OneDrive and SharePoint
- Device & OS
- Windows
- Scenario
- Syncing large SharePoint libraries with local desktop via OneDrive.
- Observed behavior
- OneDrive memory usage spikes to several gigabytes, crippling system performance. Standard troubleshooting like resetting or reinstalling OneDrive fails to resolve the issue.
Check the total number of files in the SharePoint library you are trying to sync; OneDrive is known to struggle when a single library or synced folder exceeds 300,000 files.
Enable Files On-Demand and Add Shortcuts Instead of Full Sync
Prevent massive memory consumption by using placeholders instead of downloading millions of files locally.
When you sync an entire SharePoint library recursively, OneDrive has to process the metadata for every single file. Using Files On-Demand and folder-level shortcuts drastically reduces this overhead.
Click the OneDrive cloud icon in your system tray, go to Settings (gear icon), select 'Account', find the heavily loaded SharePoint library, and click 'Stop sync'.
In the OneDrive Settings window, navigate to the 'Sync and back up' tab, expand 'Advanced settings', and turn on 'Files On-Demand'.
Open your SharePoint library in a web browser. Instead of clicking the 'Sync' button for the whole library, select only the specific folders you need, and click 'Add shortcut to OneDrive' from the top menu.

Review SharePoint Library Limits and Update Software
Ensure your sync setup respects Microsoft's file count limits and that your client is up to date.
Struggling with OneDrive Sync? Try WPS Office and WPS Cloud
If Microsoft OneDrive and SharePoint are consuming too much memory on your computer, consider switching to WPS Office. It provides a lightweight, highly compatible Office suite with its own streamlined cloud storage, keeping your system running smoothly.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install and Launch: Run the installer, follow the on-screen instructions, and launch WPS Office.
- 3. Open Office Files: Drag and drop your Word, Excel, or PowerPoint files directly into WPS Office to continue your work seamlessly.

Frequently Asked Questions
Why is OneDrive using so much RAM when syncing SharePoint?
OneDrive processes file metadata for every item in a synced library. When syncing SharePoint libraries with hundreds of thousands or millions of files, the background processing requires extensive memory, leading to severe RAM spikes.
Does resetting OneDrive fix high memory usage?
In cases where the memory spike is caused by an excessively large SharePoint library, resetting or reinstalling OneDrive usually will not help. You must reduce the number of synced files or transition to using Files On-Demand and shortcuts.
What is the file limit for syncing SharePoint to OneDrive?
Microsoft recommends syncing no more than 300,000 files across all document libraries in OneDrive. Syncing more than this threshold is highly likely to cause severe performance issues, including high RAM and CPU usage.
What is the difference between 'Sync' and 'Add shortcut to OneDrive'?
'Sync' connects the entire document library to your device recursively, which can be overwhelming for large libraries. 'Add shortcut to OneDrive' allows you to link only specific needed folders to your personal OneDrive, drastically reducing the synchronization load.




