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!?!
c
LOL, M4 Pro 48G RAM here, and everything is sluggish. I blame Gradle
plus1 1
😖 1
t
Or maybe it has to do with an AS update? But I'm pretty sure it's due to that lack of ram. I kinda have the same issue on my Windows PC but it takes way way longer. When I reach a certain amount of ram usage, I don't remember exactly, between 22-26, it becomes sluggish and I need to free memory and/or restart AS. Sometimes reboot. It's less worse if I turn off live edits but it's not really convenient.
@Colton Idle well, after some time, yes. I can barely run a simulator, AS and Safari altogether.
c
thats wild. you should not need that much ram to have a smooth experience with AS. i have some machines with 16GB and some with 96GB. AS runs smooth on both.