Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java error when using loadGridData #74

Open
geeeeeorgina opened this issue Oct 12, 2021 · 3 comments
Open

Java error when using loadGridData #74

geeeeeorgina opened this issue Oct 12, 2021 · 3 comments

Comments

@geeeeeorgina
Copy link

when I use "loadGridData" it says
"Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.OutOfMemoryError: Java heap space
Calls: loadGridData ... array -> -> .jrcall -> .jcall -> .jcheck"
Is there any way to solve it?

@RobelTakele
Copy link

RobelTakele commented Oct 13, 2021 via email

@geeeeeorgina
Copy link
Author

How big is the data you want to load and your RAM.

The data was 11G and the free RAM was 23G.
Yes I solved it by splitting the data into small pieces.Thank you!
By the way, for the non-standard calendar in netcdf (for example 360_day), what's the best way to deal with them after loading into loader?I want to process them with bias correction in downscaler.
Thank you in advance!

@durutti
Copy link

durutti commented Oct 31, 2021

I had the same issue with files about 7gb
the following command before calling loadeR solved the issue for me
options(java.parameters = "-Xmx10g")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants