-1

got this error while I tried to run my very first grail app..:( enter image description heregot this error while I tried to run my very first grail app..:(

  • 1
    please include your code – c2huc2hu Aug 30 '17 at 18:12
  • Please **[edit]** your post and show the actual code / commands / input / output as text instead of screenshots. Others can't copy and paste from your images. [See here](https://meta.stackoverflow.com/a/285557/1402846) for details. Thank you. – Pang Sep 04 '17 at 02:08

2 Answers2

0

The initial memory allocated to your JVM is bigger than the maximum JVM memory size you allocated via your -Xmx parameter.

see What are the Xms and Xmx parameters when starting JVMs?

bassmartin
  • 525
  • 2
  • 9
0

Some steps you can follow to resolve...

  1. Check the JDK and Grails, both need to be same 32 bit or both need to be same 64 bit
  2. Execute this on command prompt: java -Xmx2048m -Xms256m
  3. Then rebuild and run app
Syed Sarek
  • 373
  • 2
  • 12