Heap Size Error

When I use gpt to process Sentinel-1 data sets.I encountered the following errors.

Invalid maximum heap size: -Xmx5G
The specified size exceeds the maximum representable size.
The JVM could not be started. The maximum heap size (-Xmx) might be too large or an antivirus or firewall tool could block the execution.

My snap software VM parameters are

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

Cache Size(MB) for SNAP variables is 1024 and benchmark test values are 1024;512;768.

How can I sovle the problems? Thanks in advance.

I have solved :grin:, but my solution is to install 64 bit snap.Because I found a solution in Stack Overflow to regard 32 bit java cannot reserve enough continuous memory.64 bit JVM is indeed OK even though the maximum heap size is -Xmx5G(My conputer’s RAM is 8G).

Thank you all.

1 Like