[英]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.