我最近将grails应用程序从grails 1.3.6升级到grails 2.3。升级过程成功完成并进行了必要的更改。 现在我遇到问题,请看堆栈跟踪:
| Running Grails application Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Invalid maximum heap size: -Xmx4096m The specified size exceeds the maximum representable size. | Error Forked Grails VM exited with error`
任何帮助? 感谢
答案 0 :(得分:1)
看起来你正在运行一个32位版本的JVM,它只支持2千兆字节的最大堆大小,而不是4千兆字节。
找出正在使用的JDK / JRE Grails的版本。然后,如果需要4 GB的堆空间,请查看是否可以将其更改为64位VM。否则,修改您的启动参数,以便当Grails生成它时,JVM仅请求2 gig堆大小。