简体   繁体   English

.jcall中出错(cellBlock $ ref,“V”,setDataMethod,as.integer(j - 1L),: java.lang.OutOfMemoryError:超出GC开销限制

[英]Error in .jcall(cellBlock$ref, “V”, setDataMethod, as.integer(j - 1L), : java.lang.OutOfMemoryError: GC overhead limit exceeded

My result of a model in R says that 我在R模型中的结果表明了这一点

Error in .jcall(cellBlock$ref, "V", setDataMethod, as.integer(j - 1L),  : 
  java.lang.OutOfMemoryError: GC overhead limit exceeded

Could you please tell me what should I do for solving this issue? 你能告诉我怎么办才能解决这个问题吗?

This can mostly solved by reserving some arbitrary high amount of memory before loading the rjava package or xlsx . 这可以通过在加载rjava包或xlsx之前保留一些任意大量的内存来解决。

options(java.parameters = "-Xmx4096m")
library(xlsx)

Sometimes this works fine, sometimes you need to restart the r session to make it work again. 有时这很好用,有时你需要重新启动r会话才能使它再次工作。 Somehow this is an issue with the garbage collection within java if to many functions are called in a to short amount of time. 不知何故,这是java中垃圾收集的问题,如果在很短的时间内调用很多函数。 Couldn't solve it 100% until now :-( 直到现在还无法100%解决:-(

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.OutOfMemoryError:超出 GC 开销限制 - java.lang.OutOfMemoryError: GC overhead limit exceeded rsparkling as_h2o_frame不起作用:java.lang.OutOfMemoryError:超出了GC开销限制 - rsparkling as_h2o_frame does not work: java.lang.OutOfMemoryError: GC overhead limit exceeded 写入大 write.xlsx 的问题:错误 in.jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.OutOfMemoryError: Java 堆空间 - Issue writing large write.xlsx : Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.OutOfMemoryError: Java heap space R java.lang.OutOfMemoryError错误:Java堆空间 - Error in R java.lang.OutOfMemoryError: Java heap space R 错误:java.lang.OutOfMemoryError:Java 堆空间 - R Error: java.lang.OutOfMemoryError: Java heap space RJDBC(dbGetQuery) - 超出 GC 开销限制 - RJDBC(dbGetQuery) - GC overhead limit exceeded KERAS IN R: Error in Summary.factor (c(1L, 1L, 1L, 1L,1L, 1L, 1L, 1L,1L, 1L, 1L, 1L, : &#39;min&#39; 对因子没有意义 - KERAS IN R: Error in Summary.factor (c(1L, 1L, 1L, 1L,1L, 1L, 1L, 1L,1L, 1L, 1L, 1L, : 'min' not meaningful for factors R RJDBC java.lang.OutOfMemoryError - R RJDBC java.lang.OutOfMemoryError 分层采样R:java.lang.OutOfMemoryError:Java堆空间 - stratified sampling R: java.lang.OutOfMemoryError: Java heap space loadNamespace 中的错误(j &lt;- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): - Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM