Sweepfor Mac

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.

7 min read

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:

  1. Inventory every track in your local library with full metadata
  2. Compare to your iCloud library — identify matches, additions, deletions
  3. Upload tracks Apple doesn’t have a match for (your own MP3s, rare imports)
  4. Match tracks Apple does have to its catalog
  5. Download artwork for everything
  6. 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:

  1. Plug in to power
  2. Don’t run other heavy apps during initial sync
  3. Be patient — even a fast Mac takes hours for large libraries
  4. 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”:

  1. Apple Music subscription — your library plus Apple Music’s catalog
  2. 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

  1. Quit Music
  2. Move ~/Music/Music/Music Library.musiclibrary to your Desktop
  3. Open Music. It creates a new empty library
  4. File menu > Library > Choose Library, select the moved file. Music will rebuild

Option 2: Reset and re-sync from iCloud

  1. Quit Music
  2. Move the entire ~/Music/Music/ folder to your Desktop
  3. Launch Music. It creates a fresh library
  4. Sign in. With iCloud Music Library on, your tracks redownload metadata
  5. Local files (MP3s in Media folder) need to be re-added

Option 2 is slower but resolves persistent corruption.

Tip: Music keeps backups of your library in `~/Music/Music/Previous Libraries.localized/`. These accumulate over years and can hit 1-5GB. They're safe to delete if you're confident in your current library.

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:

  1. Check that you have a stable internet connection
  2. Verify Apple’s servers aren’t down (apple.com/support/systemstatus)
  3. Make sure you have enough disk space for the artwork cache

To clear and re-fetch artwork:

  1. View > Show View Options
  2. Uncheck “Artwork” temporarily
  3. Quit Music
  4. Delete ~/Library/Caches/com.apple.AMPArtworkAgent/
  5. 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:

  1. Initial sync still in progress — give it time
  2. A specific track failing repeatedly — usually unrecognized format or DRM issue
  3. Database corruption — needs rebuild
  4. Network issues — Music keeps retrying server calls

Diagnostic steps:

  1. Quit Music
  2. Open Activity Monitor and verify all Music processes have stopped
  3. Wait a minute, then relaunch Music
  4. If issue returns, try Window > Activity (Cmd+Option+0) inside Music to see what it’s working on
  5. Sign out of Apple Music if cloud sync is suspected, then sign back in

Skip the manual huntSweep finds the buildup slowing your Mac and clears it in seconds. Download Sweep free →

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:

  1. Check Activity Monitor. Note Music, AMPLibraryAgent, AMPArtworkAgent
  2. Check Music’s own activity — Cmd+Option+0
  3. Check sync status — top right of the sidebar, look for cloud icons
  4. Pause sync by toggling “Sync Library” off temporarily
  5. Verify internet connection stability — flaky Wi-Fi makes sync miserable
  6. Quit Music when not in use if performance is critical
  7. Rebuild library if database corruption is suspected
  8. Sign out and back in to Apple Music as a deeper reset

Pause runaway processes safelySweep identifies the apps actually eating your CPU and lets you pause them without losing work. Free for macOS →

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.

← Back to all guides