R Error: java.lang.OutOfMemoryError: Java heap space -


i trying connect r teradata pull data directly r analysis. however, getting error of:

error in .jcall(rp, "i", "fetch", stride, block) :   java.lang.outofmemoryerror: java heap space 

i have tried set r options increase max heap size of jvm doing:

options(java.parameters = "-xmx8g") 

i have tried initialize java parameters rjava function .jinit as: .jinit(parameters="-xmx8g"). still failed.

the calculated size of data should approximately 3g (actually less 3g).

could me on this? advice appreciated.

you need make sure you're allocating additional memory before loading rjava or other packages. wipe environment first , set options @ top of script.

options(java.parameters = "-xmx8000m")

see example https://support.snowflake.net/hc/en-us/articles/115000235523-solution-using-r-the-following-error-is-returned-java-lang-outofmemoryerror-gc-overhead-limit-exceeded


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -