title: Changing VM settings in IntelliJ IDEA : Error occurred during initialization of VM
body: <p>Was trying to install a module using maven in IntelliJ IDEA. It threw the following error on doing so</p>
  
  <pre><code>Error occurred during initialization of VM
  Could not reserve enough space for object heap
  Could not create the Java virtual machine.
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] There are test failures.
  </code></pre>
  
  <p>My questions are:</p>
  
  <ol>
  <li>Is this due to the VM size settings in idea/bin/vmoptions file? Will increasing it make any difference?</li>
  <li>If so, how do I do it? Since I don't have the necessary privileges to edit the file, is there an other option to change it from IntelliJ rather than editing the file?</li>
  <li>If not possible will it be really worth requesting for admin priv for changing it?</li>
  </ol>
  
  <p>Edit: Current vmoptions file contents (using <strong>Intellij IDEA 8.1.4</strong> )</p>
  
  <pre><code>-Xms32m
  -Xmx256m
  -XX:MaxPermSize=150m
  -ea
  </code></pre>