简体   繁体   English

超出smartgwt gc开销限制

[英]smartgwt gc overhead limit exceeded

Java + gwt + hibernate => the compilation has no errors Java + gwt + hibernate + smartgwt = gc overhead limit exceeded I just add to project.gwt.xml the string "inherits name='com.smartgwt.SmartGwt'/" and get OutOfMemoryError I've found a work-around of the same error in grails and it says I must vary the heapsize parameter of compiler. Java + gwt + hibernate =>编译没有错误Java + gwt + hibernate + smartgwt =超出了gc开销限制,我只添加了project.gwt.xml字符串“ inherits name ='com.smartgwt.SmartGwt'/”并获取OutOfMemoryError我在grails中发现了相同错误的变通办法,它说我必须更改编译器的heapsize参数。 I've set in Idea java compiler maximum heap size = 512, 1024 and more, but still doesn't work. 我已经在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>

I've been using gwt+smartgwt+hibernate, I've also met this problem. 我一直在使用gwt + smartgwt + hibernate,我也遇到过这个问题。 But, recently I haven't this problem. 但是,最近我还没有这个问题。

So do you use ant build and hosted mode? 那么,您是否使用ant build和托管模式? Here is my build file configuration of jvmarg value both for GWT Compile and java compile. 这是我的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