title: Android Studio - How to increase Allocated Heap Size
body: <p>I've been using Android Studio for 3 months now and one of the apps I started on it has become fairly large.  The memory usage indicated at the bottom right of the program says my allocated heap is maxed at 494M.</p>
  
  <p><img src="https://i.stack.imgur.com/TjP6X.png" alt="enter image description here"></p>
  
  <p>When I start to change the XML files my memory usage quickly reaches that cap and the IDE crashes with an Out Of Memory error like this.</p>
  
  <p><img src="https://i.stack.imgur.com/0owdY.png" alt="enter image description here"></p>
  
  <p>I've tried to increase the heap size using this but so far there has been no effect.</p>
  
  <p>I've looked at dozens of articles and other questions on how to increase the heap size but none of their answers are working.  No matter what I do to the VMOPTIONS or the IDE settings the heap size never increases.  I believe I am editting the correct file for the VMOPTIONS because if I purposely give it an invalid command Android Studio complains about it and doesn't start. </p>
  
  <p>I'm using windows 7 - 64 bit and have 16GB RAM.
  Has anyone else had this problem with Android Studio? And were you able to fix it?  </p>