簡體   English   中英

超出smartgwt gc開銷限制

[英]smartgwt gc overhead limit exceeded

Java + gwt + hibernate =>編譯沒有錯誤Java + gwt + hibernate + smartgwt =超出了gc開銷限制,我只添加了project.gwt.xml字符串“ inherits name ='com.smartgwt.SmartGwt'/”並獲取OutOfMemoryError我在grails中發現了相同錯誤的變通辦法,它說我必須更改編譯器的heapsize參數。 我已經在Idea Java編譯器中設置了最大堆大小= 512、1024或更大,但是仍然無法正常工作。

    <?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 + smartgwt + hibernate,我也遇到過這個問題。 但是,最近我還沒有這個問題。

那么,您是否使用ant build和托管模式? 這是我的GWT編譯和Java編譯的jvmarg值的構建文件配置。

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

暫無
暫無

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

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