1
Java + gwt + hibernate =>編譯沒有錯誤 Java + gwt + hibernate + smartgwt = gc超出開銷限制 我只是在project.gwt.xml中添加字符串「inherits name =' com.smartgwt.SmartGwt'/「並得到OutOfMemoryError 我發現在grails中找到了同樣的錯誤,它說我必須改變編譯器的heapsize參數。我已經在Idea java編譯器中設置了最大堆大小= 512,1024以及更多,但仍然不起作用。smartgwt超過gc開銷限制
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='library'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.smartgwt.'/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.clean.Clean'/>
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='ru.leti.alexeeva.client.Library'/>
<!-- Specify the app servlets. -->
<servlet path='/server' class='ru.leti.alexeeva.server.LibraryServiceImpl'/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
</module>
那麼,gwt有它自己的編譯器,它有它自己的堆內存設置。 所以我試圖從gwt編譯器發送錯誤時設置java內存設置。 – 2012-03-16 21:49:33