Speed up your Mac
Mac Slow When Apple Music Is Syncing Your Library? Try These Tweaks
Apple Music's library sync can quietly drag your Mac for hours during scans. Here's exactly what's happening and the settings that fix it.
The Music app on Mac inherited a complicated past. It descended from iTunes, which descended from SoundJam from before Apple bought it. The codebase has accumulated decades of features: local file management, iTunes Match, Apple Music streaming, iCloud Music Library sync, Podcast (since moved out), Audiobooks, and device sync (mostly moved out, but still partially there).
The result is an app that often does more than you realize, especially when “syncing your library.” If your Mac has slowed down whenever Music is open, the cause is usually one of a handful of specific operations.
What Music Does in the Background
Open Activity Monitor while Music is running. You’ll see:
- Music — the main app
- com.apple.music.streamingd — handles streaming and queue
- AMPArtworkAgent — fetches album artwork
- AMPLibraryAgent — manages the library database
- AMPDeviceDiscoveryAgent — scans for AirPlay devices
The library agent is the heavy one during sync. It’s responsible for keeping your local library in sync with iCloud Music Library — meaning every track you add on iPhone, every playlist change on iPad, every metadata update from Apple’s servers.
For a library with 30,000 tracks, the agent can use 1-2GB of RAM during initial sync and substantial CPU.
Free up RAM in one clickSweep frees inactive memory and pauses runaway processes. Get Sweep free →
Why Sync Pegs Everything
When you turn on iCloud Music Library (Settings > General > Sync Library), Music has to:
- Inventory every track in your local library with full metadata
- Compare to your iCloud library — identify matches, additions, deletions
- Upload tracks Apple doesn’t have a match for (your own MP3s, rare imports)
- Match tracks Apple does have to its catalog
- Download artwork for everything
- Resolve conflicts between local edits and cloud state
For a library imported from old iTunes installs, this can take 24-48 hours of background work. The Mac gets noticeably slower for that duration.
To minimize the pain:
- Plug in to power
- Don’t run other heavy apps during initial sync
- Be patient — even a fast Mac takes hours for large libraries
- Avoid making library changes during sync — adding tracks mid-sync extends the process
Match vs Subscription: Why It Matters
There are two paths to “iCloud Music Library”:
- Apple Music subscription — your library plus Apple Music’s catalog
- iTunes Match (legacy) — your own library matched against Apple’s catalog
Both use similar sync mechanisms. iTunes Match still works for those who subscribed to it before Apple Music became the primary path. Both can cause slow Mac performance during initial sync.
For users with the Apple Music subscription, you get streaming on top. The trade-off: the library agent now also handles streamed tracks, downloaded songs (for offline), and your own uploaded music.
If your library is purely streaming Apple Music content (no personal MP3 imports), sync is faster because Apple already has everything in its catalog.
Library Database: Where the Real Work Happens
Music stores everything in:
~/Music/Music/Music Library.musiclibrary/
Inside, you’ll find a Library.musicdb file (SQLite), various caches, and a “Media” subfolder that holds local audio files.
The library database can hit several hundred MB on a heavy library. Operations on it (sorting by artist, switching to a smart playlist, search) all hit this database. When it’s fragmented or corrupted, everything slows.
Symptoms of a problem library database:
- Music takes 30+ seconds to launch
- Switching playlists triggers a beach ball
- Search returns wrong results or misses tracks
- “Updating Library” never seems to finish
The fix is to either rebuild or reset:
Option 1: Rebuild library
- Quit Music
- Move
~/Music/Music/Music Library.musiclibraryto your Desktop - Open Music. It creates a new empty library
- File menu > Library > Choose Library, select the moved file. Music will rebuild
Option 2: Reset and re-sync from iCloud
- Quit Music
- Move the entire
~/Music/Music/folder to your Desktop - Launch Music. It creates a fresh library
- Sign in. With iCloud Music Library on, your tracks redownload metadata
- Local files (MP3s in Media folder) need to be re-added
Option 2 is slower but resolves persistent corruption.
Why Album Artwork Burns CPU
AMPArtworkAgent fetches and caches album artwork. For a heavy library with mixed metadata, it has to look up artwork for thousands of tracks, sometimes from multiple sources (Apple’s catalog, embedded art in MP3 ID3 tags, Music’s own database).
When artwork fetching is happening, you’ll see AMPArtworkAgent at 30-60% CPU.
If artwork fetching is consistently slow:
- Check that you have a stable internet connection
- Verify Apple’s servers aren’t down (apple.com/support/systemstatus)
- Make sure you have enough disk space for the artwork cache
To clear and re-fetch artwork:
- View > Show View Options
- Uncheck “Artwork” temporarily
- Quit Music
- Delete
~/Library/Caches/com.apple.AMPArtworkAgent/ - Relaunch Music. Artwork will refetch
Settings That Actually Help
In Music > Settings:
- General > Sync Library: ON if you want iCloud sync, OFF if your library is local-only
- General > Show Apple Music Features: ON or OFF based on whether you subscribe
- General > When you add music to your library: Add a copy or Reference original location. The latter saves disk if your music lives elsewhere
- Files > Media Folder Location: change to external drive if your library is huge
- Files > Keep Music Media folder organized: ON for tidy file structure
- Files > Copy files to Music Media folder when adding to library: OFF if you manage music externally
Restart Music after major changes.
When Music Pegs CPU and Won’t Stop
Sometimes Music gets into a state where the library agent uses 80%+ CPU continuously. Causes:
- Initial sync still in progress — give it time
- A specific track failing repeatedly — usually unrecognized format or DRM issue
- Database corruption — needs rebuild
- Network issues — Music keeps retrying server calls
Diagnostic steps:
- Quit Music
- Open Activity Monitor and verify all Music processes have stopped
- Wait a minute, then relaunch Music
- If issue returns, try Window > Activity (Cmd+Option+0) inside Music to see what it’s working on
- Sign out of Apple Music if cloud sync is suspected, then sign back in
Cleaning Up Music’s Caches
Beyond the library itself, Music maintains several caches:
~/Library/Caches/com.apple.Music/— general cache~/Library/Caches/com.apple.AMPArtworkAgent/— artwork~/Library/Caches/com.apple.iTunes/— legacy iTunes caches~/Music/Music/Cache/— streaming cache
These are safe to clear. Music regenerates what’s needed. On a Mac with years of Music use, combined caches can hit 5-10GB.
Sweep finds these caches as part of its smart scan. The legacy iTunes caches especially tend to persist long after iTunes itself is gone.
A Diagnostic for Music Slowness
When your Mac slows whenever Music is active:
- Check Activity Monitor. Note Music, AMPLibraryAgent, AMPArtworkAgent
- Check Music’s own activity — Cmd+Option+0
- Check sync status — top right of the sidebar, look for cloud icons
- Pause sync by toggling “Sync Library” off temporarily
- Verify internet connection stability — flaky Wi-Fi makes sync miserable
- Quit Music when not in use if performance is critical
- Rebuild library if database corruption is suspected
- Sign out and back in to Apple Music as a deeper reset
What Older Tutorials Miss
Many “speed up Music” articles still talk about:
- iTunes COM SDK — Music doesn’t have one, this is iTunes-era advice
- iTunes Helper.app — gone in modern macOS
- Manually managing iTunesPrefs — Music uses different preferences
The current Music app is meaningfully different from iTunes. Old tutorials targeting iTunes performance mostly don’t apply.
Long-Term Habits
To keep Music from quietly slowing your Mac:
- Audit your library size annually. Old, unrecognized tracks cause sync hiccups
- Clean up duplicates — Music has File > Library > Show Duplicate Items
- Manage smart playlists — complex smart playlists with many criteria slow library switching
- Don’t sync from iPhone via Music — use AirDrop or iCloud-based sync for individual files
Music will always be heavier than a minimal music player like VLC for personal MP3s. The trade-off is the deep iCloud, Apple Music, and library management. Tune the settings, manage the library, keep caches clean, and Music stays mostly invisible. Sweep handles the cleanup that Music’s own tools don’t surface, including legacy iTunes caches that linger for years on long-running Macs.