Huge swap usage

Hi, I have 16 inch MacBook Pro M1 Pro with 16GB of RAM and use it for Android Development


I am suffering from high memory/swap usage that causes the device to be slow due to multiple Java instances that fire once I hint build on Android Studio, please check the attached screenshot

As you see in this case I have two Java instances one takes 3.55GB and the other 2.95 from RAM and this is not the worst time, sometimes I find 4 instances!! and I always have memory pressure, this is not why I bought this machine, it is supposed to be powerful and handle the memory more efficiently!

I need a way to minimize the Java instances to just one instance

Any suggestions?

MacBook Pro 16″, macOS 12.6

Posted on May 10, 2023 7:22 AM

Reply

Similar questions

2 replies

May 10, 2023 8:23 AM in response to mEmoZzz

Welcome!


A simple restart clears Swap. The longer you go without a restart, the bigger Swap gets.


Are you running any anti-virus or so-called "cleaning" apps? Neither is needed and both will interfere with elegant automated protection you paid Apple to build into macOS.


If Swap fills up again only an hour after a restart, reconsider your relation with the five items at the top of the Activity Monitor list.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Huge swap usage

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.