Android Studio Excessive Memory Consumption without releasing - linux

I noticed that when doing builds with Android Studio my system's memory usage increases until I restart Android Studio.
Each build increases a little bit more up to the 16GB of my system. At the end I need to restart AS.
I am running Android Studio 3.0.1 on Linux Mint 18.1., 16GB RAM.
I noticed this with and without emulator

Related

installing any sdk platform for android studio takes very long time

I totally beginner in regards to android apps and android studio and I am trying to learn Kotlin and for that I installed Android studio on Ubuntu 18.04 but when trying to install any sdk platform it takes very very long time to complete installing ( the window indicate "installing XXXX" ) is there any way to speed up the installing?
for example Installing Android SDK Platform 24 takes too long
My laptop specs:
core i7
8GB RAM
Getting set up with Android Studio can take a while, usually the download takes the longest time. Expect to download 1-2 GB. You definitely don't need all the SDK platforms, only the latest (currently 28), and you don't need the NDK platform either (unless you're writing in C/C++, which if you're new to Android development is unlikely). You can also avoid downloading an emulator image by just running your app on a real device.
Try going for the minimum amount of things you need to install to get a basic "Hello World!" app running, Android Studio will prompt you if you need to download anything else.
It could also be that your computer is struggling with its memory limits; 8GB of RAM can be tight if you have other programs running on your laptop as IDEs tend to be pretty heavy. Consider upgrading your RAM if you're serious about Android development, 16GB is usually plenty.

Sluggish Android Studio Start up

I have Android Studio 3.0.1 with latest JDK installed on my i7 (4th Gen) dual core Win10 machine, 16GB RAM, 850 Pro 512GB SSD. But even with this beastly configuration, when double clicking on the Android Studio icon to launch the application, the software feels very sluggish in starting up. Takes approx. 15-20 odd seconds to just start up and then do the Gradle build of last opened app, which takes another 30-40 seconds.
Have set the vmoptions & gradle.properties to use -Xms2g and -Xmx4g along with parallel build, offline gradle execution and configureondemand.
Is there a way to drastically improve this performance when I have such a good machine configuration, probably tweaking some other Windows / Android Studio level parameters? Please help.
It start in seconds only because of that configuration.It takes few minutes to start in my laptop with 8gb ram.
So the time you mentioned seems pretty good.

Android Studio causing Thermal Shutdown

Android studio is causing thermal shutdown on project build.
I am using android studio 2.3.3 on core i7 with 8GB RAM
I was able to solve the issue.
I had to update the drivers of intel dynamic platform thermal framework.
And now Android studio is running smooth.

Android Studio emulator not working correctly

My Android Studio emulator is running in emulation mode instead of HAXM
even though RAM size in AVD and HAXM is same (1 GB). Here is a screenshot showing my situation:
Can someone explain how to make sure my emulator is running in the correct/best mode?
HAXM stands for Hardware Accelerated eXecution Manager. It's a technology that enables your Android Virtual Device (AVD), an emulator, to run faster under Windows. It does not change the fact that the AVD is an emulator (vs. a virtual machine like Genymotion or Android-x86).
From the log messages in your image attachment, it looks like you are all set. I see "HAXM is working..." there and I also see the AVD all booted up and good to go.

Android studio wont start and causes memory leaks

My studio works just fine until today. I dont installed any drivers or updates in past. Android studio just wont start and it causes memory leaks. Normally when starting studio it tooks about 400-500K MB but today about 2+GB. ! Does anybody know solution for this problem? I have tried restart computer, recovery system data from past, i have android 0.8.9 so i tried install new version 0.8.11 of android studio nothing works. Iam desperate...

Resources