After terrain correction my data came to 'java heap space'

Hello,after terrain corrected my data, my new image(been subset–>calibrate–>terrain correction) came to ‘java heap space’ , could somebody telll me how to fix it (╥╯^╰╥)?


And I got 8.93RAM now, why it still happened[・_・?]?

Hi @geoyayaispoor,

You have to increase the maximum memory settings, to do so, you can change it like this:

  1. Open the “Options” dialog by clicking on the menu “Tools/Options”
  2. Switch to the “Performance” tab
  3. Edit the “VM Parameters” clicking on the “…” button

You should see something like this:

-Xmx5120m
-Xms256m
-XX:+AggressiveOpts
-Xverify:none
-Dnetbeans.mainclass=org.esa.snap.main.Main
-Dsun.java2d.noddraw=true
-Dsun.awt.nopixfmt=true
-Dsun.java2d.dpiaware=false

The -Xmx5120m is the maximum memory (5GB in this case) change it to a bigger value (e.g. -Xmx8192m), save the changes and re-open SNAP.

It should work now.

Best regards,
Martino

NOTE: put a reasonable maximum amount of memory depending on your computer configuration!

3 Likes

Thanks♪(・ω・)ノ,it works♪(^∇^*)!