In R Studio I am getting Java Out of Memory (for RWeka)
Asked Answered
C

1

6

Ok, this looks familiar from the 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 overhead limit exceeded

Not sure how R interfaces to Java and if I can allow more heap space.

Thanks in advance Gary

Cida answered 17/11, 2016 at 15:55 Comment(0)
I
0

Yes you can increase the heap space. You can do it before loading any rJava dependent package, in this case, RWeka.

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

options(java.parameters = "-Xmx1024m")
Intemperate answered 22/3, 2018 at 17:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.