java.lang.OutOfMemoryError: GC overhead limit exceeded

本秂侑毒 提交于 2019-12-12 14:12:18

问题


In R Studio using R, when trying to join 2 tables which have about 100k records(DB2 DB), getting below error and none of the google solutions worked.

Error 'in .jcall(x, "S", "getMessage")': java.lang.OutOfMemoryError: GC overhead limit exceeded


回答1:


if you are using intillij On the main menu, choose File. Invalidate Caches/Restart




回答2:


I had this problem several times, sometimes randomly. What helped me so far was using the following command at the beginning of the script before loading any other package!

options(java.parameters = c("-XX:+UseConcMarkSweepGC", "-Xmx8192m"))

The -XX:+UseConcMarkSweepGC loads an alternative garbage collector which seemed to make less problems than the standard GC.



来源:https://stackoverflow.com/questions/45234844/java-lang-outofmemoryerror-gc-overhead-limit-exceeded

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!