title: Setting Heap size and other JVM parameters in Grails 2.2.4
body: <p>I recently encountered the following error running a Grails application that will utilmately be a quartz job triggered by a cron (currently attached to a controller for development):</p>
  
  <p>2014-11-21 12:37:34,538 [quartzScheduler_Worker-1] ERROR listeners.ExceptionPrinterJobListener  - Exception occurred in job: Grails Job
  Message: java.lang.OutOfMemoryError: GC overhead limit exceeded</p>
  
  <p>I want to increase the Heap speace but I'm not sure of the correct way to do it for my grails version(2.2.4). </p>
  
  <p>Do I create a GRAILS_OPT environment variable or do I use grails.project.fork?</p>