Search code examples
windowsmacosandroid-emulatorcpu-usage

High CPU usage with Android emulator (qemu-system-i386.exe)


The emulator qemu-system-i386.exe cpu usage almost constantly running between 7~9

Android studio 2.1 Android SDK Tools: 25.1.3 Host Operating System: Windows 7 - i7 2630QM - 8GB Ram Intel x86 Atom System Image installed

No matter what setting i change in the emulator like: emulated performance, multi-core CPU, x86-64 image, always the same thing

It is really annoying fan always on

Anyone had a fix for this issue?


Solution

  • The cause of the constant CPU usage could be the sound. If you do not need sound in your emulator you can disable it by editing the AVD's config file.

    Change/add those two lines

    hw.audioInput=no
    hw.audioOutput=no
    

    Update: As buncis commented you can also try to disable GPS if not needed:

    hw.GPS = no 
    

    On Linux/Mac the file is located at ~/.android/avd/<AVD_Name>.avd/config.ini
    On Windows the file is located at C:\Users&lt;username>\.android\avd&lt;AVD_Name>.avd\config.ini

    You may need to cold boot the emulator for the changes to become effective.