title: Eclipse throwing PermGen Space errors
body: <p>My Eclipse helios has been throwing weird <code>PermGen space</code> and <code>Java Heap</code> errors since the time I've got this new HDD, put new OS into it and have re-installed Java.</p>
  
  <p>Does anyone have a guess why this is happening?</p>
  
  <p>I followed <a href="http://www.eclipse.org/forums/index.php?t=msg&amp;th=171585&amp;start=0" rel="nofollow noreferrer">this</a>, <a href="http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse?" rel="nofollow noreferrer">this</a> and <a href="http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse?" rel="nofollow noreferrer">this</a> as well but adding anything into <code>eclipse.ini</code> just won't work. The only way I could get it to work was to start eclipse from command line with specific parameters.</p>
  
  <p>I am running on windows 7 as of now.</p>
  
  <p>here's my <code>eclipse.ini</code> I've added some things into it after going through the above links:</p>
  
  <pre><code>-startup
  plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
  --launcher.library
  plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
  -product
  org.eclipse.epp.package.java.product
  --launcher.defaultAction
  openFile
  --launcher.XXMaxPermSize
  512M
  -showsplash
  org.eclipse.platform
  --launcher.XXMaxPermSize
  512m
  --launcher.defaultAction
  openFile
  -vm
  C:/Program Files/Java/jre6/bin/java
  -vmargs
  -Dosgi.requiredJavaVersion=1.5
  -Xms512m
  -Xmx1024m
  -XX:+UseParallelGC
  -XX:PermSize=512M
  -XX:MaxPermSize=512M
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here are the screenshots of the errors that I am receiving, even after correcting the ini file:</p>
  
  <p><img src="https://i.stack.imgur.com/BrfYP.png" alt="First error"></p>
  
  <p><img src="https://i.stack.imgur.com/Be2PH.png" alt="second error"></p>
  
  <p><img src="https://i.stack.imgur.com/bIP28.png" alt="Third Error"></p>
  
  <p><img src="https://i.stack.imgur.com/ajewM.png" alt="Fourth Error"></p>
  
  <p>And here it finally asks if I would like to exit the workbench. If I choose not to, then nothing works.</p>
  
  <p><img src="https://i.stack.imgur.com/890rQ.png" alt="Fifth Error"></p>
  
  <p>Sorry for flooding this question with images, but I felt they'll help.</p>