簡體   English   中英

Grails 2.3無法創建jvm錯誤

[英]Grails 2.3 could not create jvm error

我最近將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` 

有幫助嗎? 謝謝

看來您正在運行32位版本的JVM,它將僅支持2 GB的最大堆大小,而不支持4 GB。

找出正在使用的JDK / JRE Grails版本。 然后,如果需要4 GB的堆空間,請查看是否可以將其更改為64位VM。 否則,請修改您的啟動參數,以使JVM僅在Grails產生時才請求2 gig堆大小。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM