is any1 experimenting AS 3.2.1 totally unusable wh...
# announcements
m
is any1 experimenting AS 3.2.1 totally unusable while building a project ?
k
What do you mean?
m
i mean, for example, when generating assembleDebug apk, the ide is totally unusable (navigating in project structure for instance, super laggy)
a
Give it more memory. Or just your computer might be choking on the cpu required
p
I face the same. I'm on 32gig so it shouldn't be a memory issue
m
i have a decent macbook from 2018 with 8 BG ram. could have more but its decent enought not to lag this much i think. only happened in last update
m
How much memory have you allocated to the IDE? That might be the limiting factor.
m
in module app:
Copy code
tasks.withType(JavaExec) {
        jvmArgs = ['-Xmx4608M']
    }
m
That’s not used by the IDE if you think it’s the IDE causing the issue. Assuming AS is same as IDEA, there should be an ‘Edit Custom VM Options’ entry on the Help menu. These are the JVM Args passed to the IDE when it starts.
m
thanks you. my setups is this:
Copy code
-Xms256m
-Xmx4096m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=225m
-XX:+UseCompressedOops
any suggestions?
m
Hmmm. You’re giving the IDE 4GB, so that should be good. Could just be that if the IDE is using 4GB, and you have other things going, 8GB unfortunately doesn’t go too far. If you want to see memory usage, turn on ‘show memory indicator’ in Appearance Settings. At least then you can see how much it’s actually using, and maybe give it less. What version of the JRE are you running? (About IntelliJ will show you). If it’s JRE8, the MaxPermSize is ignored. Won’t help you at all, but one less thing in file. Sorry, I don’t think I was ultimately much help here though. It’s possible it’s an issue with the IDE or you have enough things running that 8GB isn’t sufficient. Have you tried with everything else on your laptop shut off?
m
JRE 1.8.0
i’m trying new memory configs. thanks you for your help!
m
Good luck! Hopefully something comes of it.
p
i have a decent macbook from 2018 with 8 GB
With 8gb i t's not a decent anything 😉
m
it was decent 2 year ago 😛
p
2 years ago they didn't sell the 2018 model?
m
rofl. i meant 2016 😛 sorry
a
8gb of ram probably wont cut it 🙂
I would suggest min 16GB
p
I'm on 32 and it's just enough
my xps 15 caps with full cpu usage at 24gb
g
4Gb for IDE can be too many for 8 Gb machine, I would try with default settings and also check gradle settings