0

I have been facing slow performance of Android Studio in past couple of months.

Here is my system configuration :

Intel® Core™ i5-4460 CPU @ 3.20GHz × 4, RAM 7.7 GiB + 1 GB nvdia 210(i am not sure about nvdia)

I was checking mt system performance using htop

here is the response generate when my system lags:

enter image description here

in this image it clearly says something is not working appropriately. I kill the process of open-jdk and there is no effect on the android studio AFAIK and however RAM reduced significanly.

here is the screenshot when i kill the 43.4G process

enter image description here

As you can see in the screenshot after killing openjdk there is another java present.

I tried this update-java-alternatives -l and found these results:

java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
java-8-oracle 1073 /usr/lib/jvm/java-8-oracle

Is there any problem if i keep two java jdk. I think at runtime both the process were runnning which creates the problem.

Please let me what wrong with the system that flood the RAM.

If you require anything please let me know so that question remain clear.

If i need system upgradation what is the major factor to change like processor or RAM.

EDITED

I have removed open-jdk from my system and set jdk to oracle

enter image description here

But still i am getting 43.5G virtual memory consumption during project build.

enter image description here

What is the problem. Why system works fine and after some time RAM is consumed significantly and systems hangs

Enzokie
  • 7,365
  • 6
  • 33
  • 39
Shubham AgaRwal
  • 4,355
  • 8
  • 41
  • 62
  • 3
    Please comment for -1 – Shubham AgaRwal May 31 '16 at 12:40
  • If you want i can close the question but do give me a reason – Shubham AgaRwal May 31 '16 at 12:47
  • 2
    "Is there any problem if i keep two java jdk" -- I would not expect a problem for you to have more than one installed. However, I would recommend that you try to settle on using one at a time with Android Studio and Gradle. Google prefers the `oracle` builds over the `openjdk` builds for Android Studio. Make sure that your `java` command runs the same JDK that is configured for use inside of Android Studio, and see if that at least limits your Java processes to either `oracle` or `openjdk` and not both. – CommonsWare May 31 '16 at 12:53
  • 1
    "If i need system upgradation what is the major factor to change like processor or RAM." I can tell you now you won't solve this by adding another 43.4GB RAM or upgrading CPU, which is good news for you! – weston May 31 '16 at 12:57
  • @CommonsWare thanks i will remove open-jdk from my system. Lets hope performance upgrade to optimal. – Shubham AgaRwal May 31 '16 at 13:21
  • @CommonsWare please check edits.. Removing open-jdk don't solve my problem. – Shubham AgaRwal May 31 '16 at 15:26
  • @weston what is the reason behind so much RAM consumption is that optimal – Shubham AgaRwal May 31 '16 at 15:26
  • Please use punctuation. I presume you are asking me: "What is the reason behind so much RAM consumption? Is that optimal?" No it's not optimal, and I have no idea why your computer is doing that. I was just saying you can *not* and should *not* solve it by beefing up the computer. – weston May 31 '16 at 17:41
  • 1
    you can buy more RAM and a new cpu, i think that will help you :) keep the chrome and firefox close when you are running emulator and android studio, i think that will you too – Francisco Melicias Jun 01 '16 at 08:36
  • Thanks for the suggestion. I have upgraded my ram and i am able run my projects easily. Android studio consumes a lot of RAM. – Shubham AgaRwal Dec 03 '16 at 09:03

0 Answers0