Anyone here running under linux? I am and the 4.2...
# android-studio
m
Anyone here running under linux? I am and the 4.2 AS update is disastrous from a UI pov, but worse than that the memory consumption is huge (and was under 4.1) ! Christopher Elias' message says he's running in 2Gb of RAM, for me AS takes up that much RAM before I've built my (not very large) app. Building takes another 2. Can I have done something which is making the memory use so huge? How would I identify it if I have?
c
Not going to help... but just letting you know that I've had terrible performance and memory usage since our team started using kotlin. My machine needs at least 16GB to get any work done.
m
Thanks for the reply, at least I'm not completely wrong. I've just ordered a new machine with 32Gb, and keeping my fingers crossed
c
Take a read over https://developer.android.com/studio/intro/studio-config I also filed this bug for more direction on what to do when you have a lot of RAM. 😄
m
Thanks for that. I understand all the words but don't see how I would use any of that to improve how much space it takes to run. I guess different versions of Kotlin being used (ktor, for example, seems to be on 1.4 tho' p'raps only for another week or two) is going to be contributing, but it seems to me there's a huge increase in load with 4.2, from space required to speed slowdown and that probably means machine upgrade is the only sensible path. I've bought one, but it's taking its time to arrive 😞
a
I am facing this issue too. Currently I am running on Ubuntu 20.04 LTS with 16gb of RAM installed. But everytime I open my project on Android Studio. It consume all of my RAM. After 4-6 hours of work, my machine suddenly become laggy and the only solution is to close all programs or restart it before it hang and need to do the force restart. Until now I don't find any solution for this problem, and I think the only solution is upgrading my machine. I have a plan to buy a mac mini with M1. But still waiting the AS to run natively in M1. But acrually I still have some trust issue with android studio. do it runs better in macos and M1 or the RAM problem also happen on macos and M1? I wonder if anyone here ever tested it.
c
m
Interestingly, today memory consumption things have improved a little, I think because of a kernel update (to 5.11.200, I'm running Fedora) rather than anything else, but it is better, quite significantly better. Still bad though. I can now build and run perhaps three times before having to close AS and reclaim swap space, much of which is due to memory leaks. However at this stage (3rd rebuild) AS seems prone to simply closing down randomly.
a
this is interesting, I am currently using kernel 5.8, and interested to try updating to kernel 5.11 if it will give significantly improvement on memory consumption. thanks for sharing this information @MarkRS
m
On further thought, I'm not sure this is the most important factor @Anang Kur. I'd also update Fedora to version 34 (from 33). The old version had the same kernel. Can't hurt to update 🙂
a
so, the best option still to upgrade machine for now? @MarkRS
m
Sorry @Anang Kur, only just got back here. My new machine has arrived and with 32Gb I'm not having a problem. In fact, I'm not sure if it's leaking any more, but I haven't really checked.
c
a
thank you for Your update @MarkRS. 🙏