Are you experiencing slow Mac performance? A program has hung. Did you see a “Your system has run out of application memory” message or the dreaded spinning beach ball? All these signs can indicate that your RAM (or memory), is running at its maximum. Learn how to clear RAM from your Mac. Also, there are helpful tips that will help you optimize or clean up your Mac memory.
What is RAM?
First a quick primer. RAM is Random Access Memory. It stores data for ongoing tasks and processes. The difference between the RAM and the rest of the storage on your Mac is that it’s faster, therefore your Mac is designed to keep certain things in RAM in order to speed things up.
Most Macs ship with 8GB RAM or more – it’s been a long time since Apple shipped Macs with 4GB RAM or less. 8GB RAM should be plenty if you don’t run memory hungry applications and games, but even the most average user can come up against RAM issues due to memory hogging processes associated with badly designed web pages and apps. You can also find a separate article about RAM issues. How to determine how much RAM you have in your Mac .
What is Unified Memory?
Now that Apple is producing its own processors – the M1 and M2-series of chips – the company no longer uses RAM in the traditional sense. Instead all Macs with Apple’s own silicon inside use Unified MemoryThis information is shared between hardware components.
This means that M1 and M2-series Macs have memory as part of their architecture. There’s no memory slot or slots on the motherboard, nor is there an area where a memory chip has been permanently soldered on. Instead, the memory and chip are integrated into the same package.
This is why you should ensure you have enough memory for your Mac when you purchase it. It cannot be upgraded. It’s Your new M1 and M2 Macs probably need a cleaner appThere are many options, which we will discuss further below.
Unified Memory does have some benefits. Because the memory is accessible by both the CPU and GPU it can be allocated where it’s needed, and there is no performance hit because swapping from one to the other is instant and there is no need to copy data over as it’s instantly accessible. This means it is more efficient and should bring you speed benefits.
This should mean that 8GB RAM in a M1 Mac isn’t the same as 8GB RAM in an Intel Mac. But we still advise that you get the maximum amount of RAM you can afford when you buy a new Mac – you can do so as a build to order option at point of purchase. The Mac Studio allows you to choose from 16GB RAM up to 128GB.
You shouldn’t actually need 16GB or more RAM unless you use really power hungry apps. 8GB should suffice for normal use.
Do I need more RAM?
You may have problems if your Mac uses the majority of RAM.
- Performance issues
- Spinning beach ball
- ‘Your system has run out of application memory’ message
- Typing lag
- Apps not responding or freezing, and apps crashing or freezing
- Apps and web pages take ages to load
These might be the problems you are experiencing.
If you have an old Mac and it is possible to upgrade the RAM this might be the solution you need, but we suspect that the RAM in the majority of our readers’ Macs can’t actually be updated. We have already mentioned that you cannot update the Unified Memory if your Mac is an M1-series, M2-series processor.
But, even if it is possible to add more RAM to your Mac there might be a much simpler solution, so we’d suggest that you try some of the tips below before rushing out and buying more RAM.
Of course if it’s more RAM you want, and you can add more RAM to your Mac, then read How to upgrade RAM on a Mac. Also, read How to determine how much RAM your Mac has
![Add RAM Mac](https://images.macworld.co.uk/cmsdata/features/3681038/back_of_imac_27inch_2019_02_thumb.jpg)
How to clear the memory on a Mac
If installing more RAM isn’t an option – or you want to attempt to fix the problem first – what can you do to address your Mac RAM problem?
One option is to use an app to clear your Mac’s RAM (or Unified Memory). We will be discussing a few of these options at the end. If you’d prefer to jump to that section click here: These are the best apps to clear Mac RAM
However, before you install more RAM, or resort to downloading an app, there are a number of things you can do that might free up your RAM and fix your Mac’s memory problems.
Step 1. Step 1.
The simplest way to clear RAM is to restart your computer. There’s a reason why the IT desk always tells you to “turn it off and on again!” Most of the time that will solve your problem. (See: Do I need to shut down my Mac at night?)
The RAM and disk cashes will be empty when your Mac restarts. You should notice a smoother start to things once again.
It may be difficult to restart your Mac. Perhaps your system has hung and you are afraid of losing unsaved information, perhaps and the idea of closing and reopening umpteen apps doesn’t appeal, or maybe you are in the middle of something that you don’t want to interrupt (even if that is the process that is stealing all the RAM).
If you don’t want to restart your Mac what can you do to free up RAM? Read on…
Step 2. Step 2.
This also might not be something you want to do if your Mac is hung and you are in the middle of something, but it’s a good option to try necause it’s possible that your problem is related to a known issue with macOS. This is why it’s always worth checking to see if you are running the most up to date version of the OS, and updating it if necessary.
Apple releases frequent updates with bug fixes, which might solve your problem.
We cover How to update the operating software on your Mac separately.
Step 3. Check Activity Monitor
Activity Monitor is the first place to go when your Mac freezes or slows down. Activity Monitor comes as an app with your Mac. It can be found in Utilities or you can start typing Activity Monitor into Spotlight (press Command + Space) to open a Spotlight window.
Activity Monitor will display how much memory is being used. It will also help you identify which apps are using more resources than they should.
You’ll be able to see how your memory is being used in the Activity Monitor window. You’ll see details about each process and app, such as the amount of memory, how many threads, and so on. By right-clicking on one column header, you can see additional columns like Energy Impact, which is useful if your battery power is low.
If you select the Memory tab, as well as details about how much memory each process is taking up, you’ll see a graph for Memory Pressure, and data about Physical Memory, Memory Used, Cached Files, Swap Used. Below that, you’ll find sections for App Memory, Wired Memory or Compressed.
![Activity Monitor RAM](https://images.macworld.co.uk/cmsdata/features/3681038/activity_monitor_memory_thumb.png)
As for what that all means, App Memory is what’s actually being used by apps and processes, Wired memory is what’s been reserved for apps and can’t be freed up, and Compressed is inactive memory that can’t be used by other apps. All of this will add up to the Memory Used number.
Cached Files is the amount of unassigned storage that you have. (If you are wondering what Swap Used is, it’s the memory being used by macOS, so it’s already accounted for in the Memory Used calculation).
The Memory Pressure section will show you a graph which gives you an overview of the pressure in your system. It should be green. However, if you don’t have enough memory, the graph may turn yellow or red. Even if you have plenty of memory, it is possible for the graph to be red. This could indicate that there are problems.
Activity Monitor: How to Free Up RAM
- Open Activity Monitor.
- Click on Memory to open it.
- To sort processes by memory usage, click the Memory column. This will allow you to easily see which app or process is using up RAM.
- After you have identified a suspect application, select it and click Information (i) in your menu. This will give you information about what’s happening and the amount of memory used by this particular process. To quit this app, click on Quit.
- After you click Quit, you will be prompted to confirm that you want to close this window. Cancel, Force Quit, or Quit. Force Quit is useful in cases where the app has been frozen.
- You can also close a process quickly by selecting it from Activity Monitor, then clicking the X to force it to quit. This doesn’t necessarily close the app. If it’s a web page causing issues rather than quit your browser it will just close and reload that page. But if you were to quit a Photoshop process the application itself will close (and you’ll probably see a ‘closed unexpectedly’ warning.
Note: You shouldn’t close a process if you don’t know what it is as it may be required by your Mac.
Step 4. Step 4.
If you glanced at Activity Monitor and noticed that certain apps appeared to be hogging resources even though you weren’t using them – maybe you didn’t even realise they were running, you may benefit from closing them down.
Even if you don’t look in Activity Monitor, a quick glance at your Dock could identify a few running apps that you could quit, thereby freeing up some resources. If you look at the Dock you’ll notice that some apps have a dot below their icon – these apps are open.
![Dock Open Apps](https://images.macworld.co.uk/cmsdata/features/3681038/dock_open_apps_thumb.png)
How to close an Application
- Right-click the icon of the app in the Dock.
- Click on Quit.
![Quit open apps](https://images.macworld.co.uk/cmsdata/features/3681038/quit_open_apps.png)
Step 5. Step 5.
In terms of suspect apps, it’s not always just the RAM that’s being hogged by an app. Sometimes, an app may be using too much processing power which can slow down things.
Activity Monitor: How do you check CPU usage?
- Open Activity Monitor.
- Click on the CPU tab.
- Click on the column header to sort the processes by %CPU.
- Look for abnormal usage – if an app or process is using a high percentage of CPU it’s probably what is causing the issues.
- Click on the (x), in the menu to quit the app.
It is possible that a kernel_task runs in the background, consuming a lot of resources. If that is the case you won’t be able to kill that process – this is because a kernel_task represents a collection of operating system processes. Restarting your Mac is the only way to stop a Kernel_task. It is possible that the problem with Kernel_Task may be related to a hardware issue. If this happens, you might continue to see the same problem. If this is the case, you may want to As described here, run an Apple Hardware Test.
Step 6. Step 6.
Are you sending anything to print lately? It’s possible that a big print job is queued up and that has caused your Mac to hang.
Step 7. Step 7.
We don’t recommend this unless you are an advanced user, but you could try opening Terminal and typing in: sudo purge. Next, enter your password and wait until inactive memory is cleared.
How to decrease RAM usage on a Mac
Below you’ll find solutions to problems with your Mac’s memory. But how can you prevent that from happening?
If you are struggling because your Mac doesn’t have a lot of RAM then there are a few things you can do to maximise what is available. This could also be helpful
Accelerate your Mac.
Step 1. Tidy up Your Desktop
If your Desktop is cluttered with documents, images, screenshots and the like, it’s worth tiding it up – or at least dragging everything into a folder. This is because macOS treats every icon on your Desktop as if it’s an active window, therefore the more icons you have littered around your Desktop the more memory will be used. Most things are saved to your Desktop automatically, so clearing out your Desktop is a matter of taking a few minutes to do a little bit of cleaning up.
Step 2. Step 2.
What are you used to seeing when you open Finder windows? If you see Recents (in older versions of macOS: All My Files) then it’s worth changing this as all the information about the location of the files shown in that view will be stored in RAM.
How to modify the opening of the Finder
- Open Finder and click on Finder > Preferences.
- Select a folder from the General tab to show when you open a new window in Finder.
- Once you’ve changed this destination you may need to Relaunch the Finder in older versions of macOS. Right-click the Finder icon at the Dock and hold Option/Alt button. Then, choose Relaunch.
![Change what Finder shows](https://images.macworld.co.uk/cmsdata/features/3681038/change_what_finder_shows_thumb.png)
Step 3. Step 3.
Another tip related to Finder. As each Finder window can have an impact on RAM usage, either close Finder windows that you aren’t using, or merge all the Finder windows together.
In the Finder, click on Window > Merge All Windows.
Step 4. Step 4.
Apps that run in the background can use up resources. Do you have apps that appear to be running even though they are not opened? You might have items in your Start Menu that will automatically open when your Mac starts.
It’s easy to stop certain applications from automatically starting up when you turn on your Mac.
How to stop apps being started automatically
- Open System Preferences.
- Click on Users & Groups.
- Click on your User name on the sidebar on the left if that’s not already selected.
- Click on Login Items.
- This section may contain a list of applications that you can open every time your Mac is started.
- If you don’t need them to always be running, select an app in the list and click on the (-) button.
Step 5. Step 5.
Websites can be very memory-intensive. Recent macOS versions will show websites opened in Safari as separate processes in Activity monitor. Make sure to check there to determine if you have any memory hogs and close them.
It’s good practice not to have multiple web browser tabs open. Close Safari (or whichever browser you use) from time to time, or at least close the extra tabs that are open – you can do this easily.
How to close tabs in a browser
To close Safari browser tabs that are open, we recommend:
- Right click on the tab we wish to close.
- If you wish to close all tabs that are open, click Close Other Tabs.
- You can also click Close Tabs to your right to close them.
These tabs can also eat memory if you have many of them, as we did. While these tabs shouldn’t be live all the time, once you have clicked on one it will be kicked into action and may become a background memory hog, so check in Activity Monitor to see if they are. There you can close the process.
Activity Monitor: How do you close sites?
- Open Activity Monitor.
- Click on Memory to open it.
- Click on the memory hogging website – you will see an X appear in the menu.
- Click on the “X.”
- Confirm that it is your intention to quit the process.
![Quit Website Process](https://images.macworld.co.uk/cmsdata/features/3681038/quit_website_process_thumb.png)
Step 6. Step 6.
It is possible that you have web browser extensions.
How to delete a browser extension in Safari
- Open Safari and click on Safari > Preferences in the menu.
- Click on Extensions.
- You can choose the extension you wish to delete.
- Click on Uninstall.
![Uninstall Extensions](https://images.macworld.co.uk/cmsdata/features/3681038/uninstall_extensions_thumb.png)
Step 7. Step 7.
If you are running out of RAM your Mac’s drive can be used as virtual memory – so free up some storage space if you are running out of RAM. It is recommended to keep 20% of your drive free.
Large files and downloads that are not needed may be deleted. Follow our advice.
You can free up storage space by using a Mac.
The best apps to clear Mac RAM
Another option is to download a third-party app that promises to optimise your RAM – we look at some such programs below.
It should be noted that, in general, macOS is capable of managing memory efficiently and deals with logs and cashes and the like itself, so you shouldn’t really need a third party app to do that for you.
However, if your Mac doesn’t have as much RAM as you’d like, then a third party app may turn out to be cheaper and less hassle than attempting to add more RAM yourself. If it’s a frequent problem you are encountering then it may well be worth looking at those options.
These are just a few apps you might try:
Parallels Toolbox
![](https://images.macworld.co.uk/cmsdata/features/3681038/ram_left_parallels.png)
You probably know Parallels as the company behind Parallels Desktop, the virtual machine software for running Windows on the Mac, but they also make Toolbox, a collection of handy tools that make it really easy to do various things you might want to do on a Mac (Toolbox came about becasue Parallels’ Help Desk would field calls from Windows users wondering how to do do things on a Mac and they decided to simplify the processes).
Parallels Toolbox contains more than 30 tools, including a handy Free Memory tool.
The benefit of Parallels Toolbox is that you also get loads of other handy tools such as Find Duplicates so you can delete things you don’t need and free up space, an easy way to take screenshots and record video, and loads more.
We were able to regain more than 1GB of memory when we used the Free Memory Tool. THere’s a free trial available here, or it costs $19.99/£15.99 a year.
CleanMyMac X and MacPaw
![CleanMyMac X RAM](https://images.macworld.co.uk/cmsdata/features/3681038/heavy_memory_usage_thumb.png)
With
CleanMyMac XInstalled on your Mac, you will see a heavy memory usage alert when your Mac runs out of RAM. To speed up things and release RAM, click the Free Up button.
CleanMyMacX X will show an icon in your menu bar. Click it to access various tools and clear your RAM, among other things.
![CleanMyMac](https://images.macworld.co.uk/cmsdata/features/3681038/cleanmymacx_thumb.png)
Click on the Free Up button in the memory section to start releasing RAM.
You have other options to free up storage space.
CleanMyMac X can be downloaded for free. However, some features will require that you pay to unlock the full version. CleanMyMac costs $34.95/£29.95, you can download it Here.
Memory Clean 2, Fliplab
![](https://images.macworld.co.uk/cmsdata/features/3681038/ram_cleaner.png)
This will purge your Mac’s inactive memory – something you might want to do after closing a particularly intensive app or game. The free app has some useful features, but you can also purchase the in-app version to access more. It took us about 1GB to run it, without having to pay any money. Get it Here.
In a separate article, we have more information about the best Mac cleaners. These cleaners do more than just free up RAM. These top cleaners will boost your Mac’s performance.