[R] rJava garbage collect

Benjamin Tyner btyner at gmail.com
Wed Feb 7 02:27:44 CET 2018


Hi Martin,

Thanks for providing the reference.

In this particular case, it helped me to discover that 13 JVM threads 
were garbage collecting in parallel, occasionally resulting in a race 
condition. Setting

     options(java.parameters = "-XS:ParallelGCThreads=1")

appears to resolve the issue.

Regards

Ben

> ------------------------------------------------------------------------
> On 6 February 2018 at 04:34, Benjamin Tyner <btyner at gmail.com <https://stat.ethz.ch/mailman/listinfo/r-help>> wrote:
> >/Hi />//>/Does rJava offer a way to instruct the JVM to perform a garbage 
> collection? /
> Do you really, really need to run the garbage collector?
>
> Consider reading:
> https://stackoverflow.com/questions/5086800/java-garbage-collection
>
> Regards
> Martin
>



More information about the R-help mailing list