title: Could not reserve enough space for object heap in grails
body: <p>I am working on GGTS 3.5 and Grails version 2.3.7. When i run my project, we are facing an issue with Heap size. </p>
  
  <pre><code>Windows 7 32 bit; RAM: 3gb.
  Java 1.7 .
  </code></pre>
  
  <p>I set below environment variables as well.</p>
  
  <pre><code>GRAILS_OPTS = -XX:MaxPermSize=1024m -Xmx1024m -server
  JAVA_OPTS = -XX:MaxPermSize=1024m -Xmx1024m -server
  </code></pre>
  
  <p>and changed my <code>GRAILS_OPTS</code> in start grails file. But still facing the same issue.</p>
  
  <p>I have just started working in java and grails, please help me out. Many thanks in advance.
  Error Desc:</p>
  
  <pre><code>Loading Grails 2.3.7 
  Configuring classpath . 
  Environment set to development ................................. 
  Packaging Grails application .......................................... 
  Running Grails
  application Error: Could not create the Java Virtual Machine. 
  Error: A fatal exception has occurred. Program will exit. 
  Error occurred during initialization of VM 
  Could not reserve enough space for object heap
  Error | Forked Grails VM exited with error
  </code></pre>