问题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
本文介绍了使用Grails开发过程中遇到的两个常见问题及其解决方案:一是如何解决内存溢出问题,通过调整JVM参数来增大内存分配;二是如何在Eclipse中正确配置gsp文件的打开方式,确保能够正常编辑。
2181

被折叠的 条评论
为什么被折叠?



