Android Studio consumes huge amount RAM - android

I have MacBook Pro 15 with 16 GB Ram. I am just running one project in AndroidStudio and it takes about 6 GB of RAM and make my MacBook slow. This is insane something is terribly wrong with AndroidStudio 3.0.
Please look at the screenshot it has two instances of java taking nearly 3.5 GB of RAM without emulator.
Is there a solution for this issue? I know about this https://developer.android.com/studio/intro/studio-config.html#low_memory but I have 16 GB RAM it should take care of things smoothly without tweaks.
For some reason, Apple limited the RAM capacity of MacBook to 16 GB and Android consumes most of it which is making me frustrated because I can't upgrade the stupid RAM or fix Android Studio memory problem.

For MacOS:
You can use ulimit buildin shell command to limit the use of system-wide resources
You can learn more about ulimit command here
For Windows:
You can check this
p.s: Similar problem was discussed over here

Related

Will Android studio run on core i3 370m first gen processor?

Core i3 370m 1st Gen 2cores 4threads #2.5ghz.
6GB DDR3 RAM
OS: Manjaro Linux
Can this laptop run Android studio without the emulator(I will use an Android device for that).
Is upgrading the cpu to a core i7 640m 1st gen 2cores and 4threads at 2.6 ghz recommended?
Your CPU will run it fine, not impressive though, but your ram might be a limiting factor and if you are going to be making a proper project with lots of xml and java class files that 6gb ram might be a limiting factor bottlenecking the whole system. Even though Linux is a light version OS Android Studio can still horde on ram.
Edit Based on Comment (Cant share image there)
yes 8 gb will get you buy but the problem is you will eventually have problems even with 8gigs later own (as you scale projects and make more complex apps) and you wont be able to upgrade your ram as maximum support of both the 370m and 640m is limited to 8gb
If I were you ill just stick with 6gigs and get myself familiar with android studio and save some money and upgrade to at least a 2th gen or higher to get that 16 gigs max capacity
Edit 3 (posting intel ark link)
here is the Intel ark page link search for any cpu that you find in your budget range which has at least 16 gb max capacity limit (for ram)
For running android studio You have the correct processor but it is recommended to upgrade the RAM to 8 GB as it is recommended by Google, But if you cannot than you might face OS hanging issue

How much memory DO you need for Android Studio?

I have Android Studio and 8GB of RAM. The emulator takes about 7 minutes to boot, and anywhere between 1-5 minutes to install and run an empty project. Several errors like Emulator: sockettcploopbackclientfor: error: fd _____ above fd_setsize (_____) popped up. I am also using a Nexus 5 with an API 25 to improve disk, memory, and CPU usage.
I know someone who has uses Xcode and needs 16 GB of RAM, equivalent to a Terminator bot, and the apps and emulators work fine. How much RAM do I really need for Android Studio? Is it even a problem with RAM?
(And yes, virtualization is on.)
For me it was really slow that I was running the app and go to do something else
Sometimes it took 30minutes and I used to use 4GB-6GB ram for it .
Now I am using a real device and it much faster.

android studio use to much ram on ubuntu

can anyone tell me why android studio on Ubuntu use to much ram memory and why it is so painful to code.
My specs are:
cpu: i3-2310m
ram: 4gb ddr3
system: ubuntu 16.04.1
I had android studio on win 10 and with emulator was used only 3,4gb of ram.
Codding was not so great on win 10, but definitely less painful (less lagging)than on ubuntu.
I use the same android studio (2.1) and the same project but,
on Ubuntu use whole ram and use 1,1 gb of swap and emulator now is lagging. how is that possible, should not android studio be less demanding on ubuntu than on windows os?
and why it is so painful to code. My specs are: cpu: i3-2310m ram: 4gb ddr3 system:
"4gb" - that's why. i3 is also not helping really as the whole IDE, gradle and stuff needs some horse power. What's your storage? 5400 hdd or maybe something better?
As immediate solution try to decrease memory in AVD (emulator) settings, try 512Mb.
Also you can try power saving mode (it can consume less memory too) pressing on the bottom-right button, see the screenshot:
You can even try to disable Inspections in this menu, if you're comfortable without them.
But the real solution is only to buy more RAM, unfortunately...

How many minium RAM memory requirement for build android ROM on device run ubuntu 64 OS

I want build a ROM version by myself. But I'm not sure if laptop with 4GB RAM memory is enough for development. Anybody help me?
P/s: Laptop is running Ubuntu 14.04 64bit
I would suggest you to read the minimum requirements mentioned by Google.
Link: AOSP Minimum Requirements
As an additional note, if you are keeping swap space, make sure it is half the size of your RAM.
16GB is recommended if you are building in a virtual machine on top of windows. I increased the swap partition on 6GB physical building initially.
I've now built omnirom marshmallow for nexus 10 with Ubuntu 14 natively installed, 16GB of ram. During the build it didn't go much above 6GB RAM use.
You'll find CPU gets max'd out first, at least on my dual core i5 (2.5-3Ghz)
I have read about building Android on ubuntu server, that may have slightly lower RAM requirements.

Android Development Machine

With the latest SDK release, and the ability to download separate platforms releases into the SDK, the hardware resources required to develop for Android have increased significantly. Assuming that the developer targets all currently available seven platforms - that could take your dev machine to its knees. Taken alone the 'Android SDK Content Loader' takes nearly two minutes on a dual-core machine with 2GB memory.
As the title suggest the reason for creating this wiki is for everyone to list their development hardware configurations, and thus determine what is a well-suited machine for Android development.
The secondary reason for the wiki is that I'm trying to get my employer to provide me with a decent machine for development as I'm currently forced to work on a nearly 4 year old randomly-built machine, and expected to deliver great results. However, the reality is that my system keeps running out of memory, and I can hardly get a chance to write a few lines of code in between the numerous crashes.
Hope this grows well enough so it helps out beginners to decide whether or not an upgrade on their existing configurations will improve their productivity! Of course, I hope it will serve me as a good evidence to show to my employer that I do need an upgrade too!
Thanks!
Black MacBook (Jan. 2008) 2.2 GHz Core 2 Duo, 4 GB RAM, 160 GB HD, with the built-in Intel graphics chipset. I've got a 23" Samsung LCD that I hook it up to when I'm working at my desk.
Only thing upgraded is the RAM. Eclipse had a tendency to freeze up all the time until I upgraded the RAM.
So, my setup goes like this:
MacBook Mac OS 10.6, 2.4 Ghz, 4 GB RAM, NVidia 9400
I was working working on this machine before
iMac, 2.2 GHz, 4GB RAM, I forget which ATI card
I have a MacBookPro 4GB RAM, 2.53 Ghz, 320GB 7,200 RPM hard drive.
Works like a charm, though Eclipse does take a lot of RAM (about 400-600MB), so I try not to use a lot of other CPU/RAM intensive apps at the time (music/media, VM, etc).
I am using the following.
Windows 7 Ultimate 64 bit,
AMD Phenom 9950 Agena 2.6GHz Quad Core,
AMD Radeon HD 4850 512 MB
4 GB Ram,
10,000 RPM HDD
Dual 21' LCD monitors
The system is about 1.5 years old, but is still working great.
I'm using Ubuntu Linux OS, Intel Core 2 Duo 2.40GHz CPU, 2GB memory, 15KRPM hard drive, 37" 1080P LCD TV monitor.
No complaints re Android development with Eclipse. System does become barely functional due to excessive swapping if I try to use a VirtualBox VM with Windows XP loaded (to test web pages in MSIE, etc.) and lots of memory allocated while things like Eclipse are also gobbling memory, though. Eclipse's default memory use settings have been cranked up as well, however.
I'm using Windows XP sp3,Intel pentium D 3.0ghz processor,2GB RAM,80GB HDD,No external graphics card installed. I'm able to develop for android versions up to 2.2 without having much delay.but when it comes to androi 2.3 and above my emulator takes a lot of time to load and run apps.

Categories

Resources