Sweepfor Mac

Troubleshooting

How to Free Up RAM on Your Mac (Without Restarting)

When your Mac feels sluggish but you don't want to restart, here's how to actually reclaim RAM — including the Terminal command Apple doesn't advertise.

7 min read

A restart fixes almost any RAM issue. That’s the easy answer, and sometimes the right one. But if you’ve got 12 unsaved documents, six chat windows, a Zoom call about to start, and a video render at 78%, “just restart” is bad advice. Here’s how to claw RAM back without nuking everything.

First, decide if you actually need to

macOS manages memory aggressively and uses spare RAM as a disk cache. “Memory Used” of 14 GB on a 16 GB Mac doesn’t necessarily mean you’re tight — it might mean macOS is being efficient.

Open Activity Monitor (cmd-space, type Activity Monitor, return). Click the Memory tab. Look at the Memory Pressure graph at the bottom:

  • Green — you’re fine. Don’t fix what isn’t broken.
  • Yellow — getting tight, time to free some up
  • Red — actively choked, do something now

If pressure’s green, the slowness you’re feeling probably isn’t RAM. It might be CPU (check the CPU tab), a stuck process, or storage being slow. Free up RAM only if the pressure indicator says you should.

Quit the obvious offenders first

Sort the process list by Memory column (descending). The top entries are almost always the culprits. Common ones:

  1. Browsers — Chrome, Safari, Arc, Firefox. Each tab can be 200-500 MB.
  2. Slack / Teams / Discord — these grow over days
  3. Spotify — surprisingly heavy when running for hours
  4. Photos / Music — when syncing or analysing
  5. Mail — with large mailboxes
  6. Xcode / Docker / Simulator — if you’re a developer

Quit whatever you don’t need right now. Cmd-Q is your friend. You don’t have to restart the Mac, just the apps.

Restart heavy apps without restarting the Mac

A specific trick that works: quit and relaunch your single heaviest app. Slack and Teams in particular grow over days because of memory leaks in older versions. Quit, count to three, reopen — you’ll often see 1-2 GB come back instantly with zero impact on workflow.

Same goes for browsers if you’re committed to keeping the tabs. Bookmark them as a folder, quit the browser, reopen, restore tabs. The browser starts fresh; tabs come back; memory drops dramatically.

The Terminal command Apple doesn’t advertise

Open Terminal (Spotlight → “Terminal”) and run:

sudo purge

You’ll be asked for your admin password. Once it runs (takes 2-30 seconds), inactive memory is forced back to the free pool. macOS keeps caches around in case you’ll want them — purge says “I don’t, give it back.”

A few things to know:

  • It’s safe. It doesn’t quit your apps or affect your data.
  • It can briefly stutter the system while it works.
  • You’ll see Memory Used drop in Activity Monitor immediately after.
  • macOS will gradually rebuild caches, so the drop isn’t permanent — but you’ve reclaimed the active pool.
Tip: If you find yourself running sudo purge often, that's a signal you're either RAM-bound or running an app with a leak. The command is a workaround, not a fix.

There’s a faster waySweep does the same hunt in seconds, with a preview before anything is removed. Try Sweep free →

Restart Finder

Finder is a process like any other. If it’s misbehaving — slow Get Info windows, sluggish file copies, beachballs — restarting it just frees its memory and clears its state without affecting anything else.

In Activity Monitor, search “Finder,” select it, click the X button at the top of the window, choose “Relaunch.” Done. Finder reopens its windows and you carry on.

Pause sync apps during heavy work

iCloud Drive, Google Drive, Dropbox, OneDrive, Photos sync — each of these can use 1-2 GB while syncing. If you’re about to do something memory-intensive and notice they’re all going at once, pause them:

  • Photos — System Settings → your Apple ID → iCloud → Photos → toggle off temporarily
  • iCloud Drive — same screen, toggle iCloud Drive off
  • Dropbox — menu bar icon → pause syncing
  • Google Drive — menu bar icon → pause syncing
  • OneDrive — menu bar icon → pause syncing

Turn them back on when you’re done.

Browser-specific tactics

If your browser’s the issue (it usually is), try these before quitting it:

  1. Close pinned-but-unused tabs — pinned tabs still consume memory
  2. Use Reader mode on long articles — strips images and scripts
  3. In Chrome, open Task Manager (Window → Task Manager) and end the heaviest tab processes
  4. In Safari, hover the tab list and close anything you haven’t touched in an hour
  5. Disable extensions you don’t use — every extension adds to every tab

Chrome users especially: open chrome://discards/ and you can manually discard tabs to free their memory while keeping them in the tab strip.

What about menu bar apps?

Lots of menu bar utilities sit there forever, each using 50-200 MB. Add up ten of them and you’ve got 1-2 GB just from icons in your menu bar. Open Activity Monitor and look at processes you don’t actively use. Common ones to consider:

  • Old screenshot tools you replaced
  • Two clipboard managers (only need one)
  • A weather app you haven’t looked at in months
  • An ergonomics reminder you ignore
  • A “free RAM” app from 2014 still trying to do its job

Quitting a menu bar app you forgot about can reclaim 100-300 MB instantly.

Skip the manual huntSweep finds every cache, log, and forgotten file in seconds — only removes what you OK. Download Sweep free →

Find runaway processes

Sometimes memory’s being eaten by something obscure — mdworker_shared, bird, photoanalysisd, WindowServer. Each is doing a job, but if one’s misbehaving it can grow far past what’s reasonable.

In Activity Monitor, sort by Memory and look at the top 10. Anything that’s not an app you opened, but is using over 1 GB, deserves a closer look:

  • WindowServer — usually 200-500 MB. Over 2 GB suggests a buggy fullscreen app or a screen recorder that didn’t clean up.
  • mdworker_shared / mds_stores — Spotlight indexing. If it’s been over a GB for hours, your index is probably stuck.
  • bird — iCloud sync. High usage means it’s reconciling something. Wait it out, or pause iCloud Drive.
  • photoanalysisd — Photos doing background analysis. Plug into power so it finishes faster.
  • kernel_task — leave it alone, it’s the OS.

If WindowServer is the culprit, log out and back in (Apple menu → Log Out). That kills the WindowServer for your user session and respawns it fresh. Faster than a restart.

Apps that are notorious for leaks

In our experience, these apps grow over time and benefit from periodic restarts:

  • Slack
  • Microsoft Teams
  • Discord
  • Older versions of Spotify
  • Skype (if you still have it)
  • Zoom (between calls)
  • Older versions of Outlook

A weekly quit-and-relaunch routine keeps them honest.

When freeing RAM doesn’t help

If you’ve quit half your apps, run sudo purge, and pressure’s still yellow within minutes — you’re hardware-limited. 8 GB Macs in 2026 are tight for power users; 16 GB is the comfortable floor. You can’t add RAM to an Apple Silicon Mac, so the workarounds are:

  • Be more deliberate about what’s open
  • Use lighter alternatives where possible (Safari instead of Chrome, native apps instead of Electron ones)
  • Plan a memory upgrade for your next Mac

The one-click version of all this

Doing all of this manually — Activity Monitor, sorting, killing apps, running purge, restarting Finder — is tedious. A cleaning tool that surfaces this in one screen and frees inactive memory with a click is a meaningful quality-of-life upgrade if you do this regularly.

Sweep’s speed boost feature does exactly this: it identifies which processes are using the most memory, frees inactive RAM, and offers to pause runaway processes — all without you typing your admin password into Terminal. The Mac stays running, your work stays open, and you get a quick boost when you need it. No restart required.

← Back to all guides