Java Heap Space (Out Of Memory)

Hi there,

I’ve tried to use os.environ[“JAVA_OPTS”] = “-Xmx8g” to increase my heap size but I still get OOM exceptions thrown. Is there a way to do this correctly? It’s all a bit funny dealing with Java inside a non java environment.

For reference I’m trying to radiometrically calibrate and terrain correct an SAR GRD dataset in Python.

I can do this on small subsets of a file but unlike SNAP, I cant do a whole one.

Many thanks,


Have you tried this one:

I’m still not sure which of the both options is doing the trick. However, it helped others.

Just gave those a try, it would appear the snappy.ini file is the one which actually makes the change.


Thanks very much for the help!