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