2012-03-16 69 views
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> 
+0

那麼,gwt有它自己的編譯器,它有它自己的堆內存設置。 所以我試圖從gwt編譯器發送錯誤時設置java內存設置。 – 2012-03-16 21:49:33

回答

1

我一直在使用gwt + smartgwt + hibernate,我也遇到了這個問題。但是,最近我沒有這個問題。

那麼你使用ant構建和託管模式? 這是我爲GWT編譯和java編譯編寫的jvmarg值的構建文件配置。

<!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> 
    <jvmarg value="-Xmx1025M"/> 
    <jvmarg value="-Xms512M"/> 
    <jvmarg value="-Xss16M"/> 
相關問題