[R] rJava: java.lang.OutOfMemoryError

Marc Seil marc.seil at tudor.lu
Mon Nov 6 16:46:23 CET 2006


Hy,

In my case I just invoked as root (on a linux box) the command R CMD
javareconf and checked if my system and root vm did match the version of
the user vm. After this the
command .jinit(parameters=c("-Xmx512m","-Xmx128m")) could be executed
without errors. I got this information from
http://www.rosuda.org/JGR/down.shtml


--

Hi,
Has anybody encountered the following problem?
TIA, Gregoire

> library(rJava)
> .jinit()
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread

This would not help:
> .jinit(parameters=c("-Xmx512m","-Xmx128m"))

R and rJava versions are:
> installed.packages()["rJava",]
                Package                 LibPath                 Version
                "rJava"    "/home/user/lib/R"                 "0.4-3"
               Priority                  Bundle                Contains
                     NA                      NA                      NA
                Depends                Suggests                 Imports
"R (>= 2.0.0), methods"                      NA                      NA
                  Built
                "2.3.1"
> R.Version()
$platform
[...]
$system
[1] "i686, linux-gnu"
[...]
$version.string
[1] "Version 2.3.1 (2006-06-01)"



More information about the R-help mailing list