问题1:使用Grails开发容易出现内存溢出
java.lang.OutOfMemoryError: PermGen space
解决:set JAVA_OPTS=-XX:PermSize=256M -XX:MaxNewSize=512m -XX:MaxPermSize=512m -Xmx1024m
问题2:eclipse中不能打开gsp文件,出现以下错误:
Could not open the editor: Editor could not be initialized.
解决:
1.加入.gsp的Content Type方法: Window-->Preferences-->General-->Content Types-->Text-->JSP-->Add(输入*.gsp)
2.设置默认gsp文件打开的编辑器的方法: Window-->Preferences-->General-->Editors-->File Associations-->Add(Associated editors:)-->GSP Editors(按ok)-->(在Associated editors:列表中选中GSP Editors,点击右边的)default
java.lang.OutOfMemoryError: PermGen space
解决:set JAVA_OPTS=-XX:PermSize=256M -XX:MaxNewSize=512m -XX:MaxPermSize=512m -Xmx1024m
问题2:eclipse中不能打开gsp文件,出现以下错误:
Could not open the editor: Editor could not be initialized.
解决:
1.加入.gsp的Content Type方法: Window-->Preferences-->General-->Content Types-->Text-->JSP-->Add(输入*.gsp)
2.设置默认gsp文件打开的编辑器的方法: Window-->Preferences-->General-->Editors-->File Associations-->Add(Associated editors:)-->GSP Editors(按ok)-->(在Associated editors:列表中选中GSP Editors,点击右边的)default