Any advice on how to optimize AS on Mac ? I only h...
# android-studio
t
Any advice on how to optimize AS on Mac ? I only have 16gb ram, the app keeps stuttering or completely freezing when the ram usage is around 85%. When the ram is not full, i find it smoother than on Windows but i lack ram...
c
What kind of chip do you have? And how much RAM are you allocating to memory heap size?
c
What I had to recently do on a project was turn down the xmx in gradle.propeties. My team had it set to 10g. We are keeping that in the repo, but if I go to my ~/.gradle/gradle.properties i could set it to 4gigs (the sweet spots after profiling with 16, 14, 12, 10, 8, 6, 4, 3, 2, 1) It helped the overall snappiness of my machine as I kept thrashing up against my swap.
like. a night and day difference. here i was blaming a bunch of other things, but i just tuned that down and life is good
t
@Chris Sinco [G] Mac mini M4. 3072MB.
@Colton Idle I tuned it down to 4G from 5G but still have poor performances after a while.
I'm thinking about upgrading hardware when i can as i'm not only running low on RAM but also storage... Meanwhile i'm looking for the most optimal settings. I'll reduce my usage to only builds but you know when you started something and you want to finish it before switching workstation... I'm way too used to 32gb ram, i don't have to think about memory.
c
mac mini m4 and its running slow!?!