My result of a model in R says that
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
.
options(java.parameters = "-Xmx4096m")
library(xlsx)
Sometimes this works fine, sometimes you need to restart the r session to make it work again. Somehow this is an issue with the garbage collection within java if to many functions are called in a to short amount of time. Couldn't solve it 100% until now :-(
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.