繁体   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

我在R模型中的结果表明了这一点

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

你能告诉我怎么办才能解决这个问题吗?

这可以通过在加载rjava包或xlsx之前保留一些任意大量的内存来解决。

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

有时这很好用,有时你需要重新启动r会话才能使它再次工作。 不知何故,这是java中垃圾收集的问题,如果在很短的时间内调用很多函数。 直到现在还无法100%解决:-(

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM