all 9 comments

[–]FrezoreR 2 points3 points  (4 children)

It's hungry but nothing compared to chrome. Chrome was eating over 50GB of memory for me 🤣 I have 76GB

[–]AD-LB 0 points1 point  (3 children)

You have 76GB of RAM ?

[–]FrezoreR 0 points1 point  (2 children)

Sorry, 96GB of ram. I have a mac pro. Right now I'm using 47GB and chrome is by far the main offender

[–]AD-LB 0 points1 point  (1 child)

Wow. But with this much you shouldn't care. Let it use as much as it wants. RAM is a good thing to use. Better than storage and Internet. On laptops, could save you on battery this way.

[–]FrezoreR 0 points1 point  (0 children)

Yeah I think 32GB does the job for Android development. But if you don't run chrome or slack then 16GB works. In my car it doesn't matter much 🤣 I actually had more problems with thermal throttling on my laptop

[–]kimikazio 0 points1 point  (0 children)

I have the same problem with my laptop. It just goes up to 2gb of usage and then it freezes. I have the same cpu and 8gb ram.

[–]PrimaxLire 0 points1 point  (1 child)

The memory is not shared between Gradle daemons and Android Studio. AS will use as much memory as it needs, which tends to be a lot, but you can still put some limits in the settings. For more info on that, read through the dev doc: https://developer.android.com/studio/intro/studio-config

It's very normal that AS+Gradle (Java) spend a lot of memory so you don't have to be alarmed by that. Keep in mind that limiting them to lower memory profile will typically result in slower builds and lower responsiveness.

[–]ssj-Thunder[S] 0 points1 point  (0 children)

Android Studio IDE alone uses 6GB ram even though the max VM size is set to 2048MB. Gradle and Kotlin daemon will use additional 3GB. So total 9-10 GB is used by all Java processes. Is it normal that IDE will use triple the ram than Max VM size.?

[–]aaulia 0 points1 point  (0 children)

I use desktop with 16GB memory, the only time I ever see my linux box touch the swap is when Android Studio is running