In R Studio, I get Java Out of Memory (for RWeka)

Well, it looks like a Java world where / how can I allow more memory for RWeka in RStudio.

Error in .jcall ("RWekaInterfaces", "[S", "tokenize",. Jcast (tokenizer,: java.lang.OutOfMemoryError: GC upper limit exceeded

Not sure how R interacts with Java, and if I can allow more heap space.

Thanks in advance Gary

+6
source share
1 answer

Yes, you can increase a bunch of space. You can do this before downloading any rJava-dependent package, in this case RWeka.

To increase the default value (from 512 MB) to 1024 MB:

options(java.parameters = "-Xmx1024m") 
0
source

Source: https://habr.com/ru/post/1012417/


All Articles