Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator uses 100% cpu even if nothing i running on it ?

I have a celeron processor :/ and android emulator on eclipse uses 100% of cpu and hangs everything unless I kill it . I was just trying a hello android program from a book and don`t know much about android or even eclipse .I have the android-eclipseplugin installled .

Can someone help me with is ?thanks!

like image 891
user882440 Avatar asked Sep 04 '11 05:09

user882440


People also ask

How do I reduce CPU usage on emulator?

I reduced the CPU usage of my emulator by setting the framerate of the monitor to 60hz. It was on 144hz and my CPU was running at 60% - 70%. By only changing the framerate of the monitor, it's now sitting at 3% usage.

How do I stop an emulator from running in the background?

To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.

Is Android studio CPU intensive or GPU intensive?

Bookmark this question.

How much RAM should I give the Android emulator?

However, the heap size should not be less than 12 MB. o Depending on your computer specs, the recommended ram size is in the range between 512 MB – 1024 MB. Although you can give more ram to the emulator but an actual android device would normally have 512 MB – 1024 MB for ram only.


1 Answers

As others have said, the solution is disabling sound. Unfortunately, in recent Android Studio releases (I'm using 1.4) the option to disable sound has been removed from the GUI. To disable sound you can do it either by launching the emulator from the command line with the -noaudio flag, or by editing the AVD's config file and setting the following parameters:

hw.audioInput=no hw.audioOutput=no 

On Linux, I found that file at ~/.android/avd/myAVD.avd/config.ini

like image 168
IanB Avatar answered Sep 30 '22 19:09

IanB