Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio using > 100% CPU at all times - no background processes appear to be running

I've noticed Android Studio (when running) uses greater than 100% CPU at all times, even when it appears there are no background processes that the IDE is running (indexing, etc). I might suspect this were something specific to my box, but some fellow developers are encountering this as well.

Often times the CPU usage is in the high 100s or mid 200s (see screenshots below). Has anyone encountered this as well? If so, are there any strategies or options within the IDE to correct this intensive use of system resources?

enter image description here

enter image description here

like image 544
Shaun Avatar asked Nov 14 '13 19:11

Shaun


People also ask

Why is my CPU usage at 100 with no applications running?

Malware or viruses on you PC may also cause the CPU 100% usage issue. So try running an antivirus scan to see if there are viruses, spywares or Trojans on your PC. If the antivirus software on your PC detected malware or virus, you need to delete them immediately.

Is Android studio CPU intensive or GPU intensive?

Bookmark this question.

Can a process use more than 100% CPU?

%CPU -- CPU Usage : The percentage of your CPU that is being used by the process. By default, top displays this as a percentage of a single CPU. On multi-core systems, you can have percentages that are greater than 100%.


2 Answers

Thanks to Buzzrick (answered on this page, probably above my answer), he mentioned about VCS. Turning off all of the background operations of VCS seemed to have a HUGE impact toward the high cpu usage - it was 150% and now it's 20%, more or less.

I'm on OS X

Go to: Preferences > Version Control > Background. Now listed under 'Background Operations' are 6 options. I disabled the first three options which are:

Perform update on VCS in background, Perform commit to VCS in background, Perform checkout to VCS in background.

like image 64
Miguel P. Avatar answered Oct 15 '22 08:10

Miguel P.


You can try the following options in the File Menu:

  1. File Menu -> Invalidate Caches / Restart... -> Invalidate and Restart
  2. Enable Power Save Mode by clicking on File -> Power Save Mode

Power Save mode only disable code insights and background tasks.

like image 28
muneikh Avatar answered Oct 15 '22 09:10

muneikh