You can clear up memory on your Mac if it is running noticeably slower than before. This can cause a significant reduction in the overall system speed. In the following section, we will walk you through the steps necessary to clear the memory on your Mac using a simple command entered into the Terminal which comes pre-installed with all Mac computers.
How to clear memory on a Mac
- You should kick things off by launching the Activity Monitor. Using Spotlight search is the most convenient method. To open the Activity Monitor, press the little search button in the upper right corner, enter “activity monitor,” and then choose it with a double click.
- To do this, select the “Memory” menu item at the top of the “Activity” window. On this screen, you will be able to see how much RAM is currently being used. Sorting by the amount of “Memory” usage is the best way to see which program is consuming the most RAM.
- If a program uses a significant amount of RAM, it may be preferable to terminate it. The “X” at the top of the screen is where you should click to remove the item. Note, however, that this program does not keep unsaved document drafts.
- If this does not have the expected effect, you can clear the cache. This can also cause a load on RAM. Leave the activity display window open and go back to the Spotlight search. This time enters “Terminal”.
- In Terminal, type “sudo purge” and confirm with the [Enter] key. You will then need to enter the administrator password you use to log in to your Mac. Confirm again with the [Enter] key. When you return to the “Activity Monitor” screen, you will see that the RAM cache has been cleared.
- Open the Activity app by searching in Spotlight.
- Open the “Memory” tab. Here you will see the amount of memory currently in use. Click on the “Memory” column to see the program using the most memory at the top.
- Select one of the programs that are using the most memory and click the “X” icon at the top to end the program.
- If these steps do not fix the problem, keep the Activity Monitor window open and do a Spotlight search to launch Terminal.
- Enter the command “sudo purge” and confirm with [Enter].
- Then enter your administrator password. Confirm this with [Enter].
- When you return to the Activity screen, you should see less memory being used.
- If none of these steps worked for you, restart your Mac. This will reset the memory.