SNAP Configuration in HPC

I do not know what the optimal size is but here it is stated one can go up to 75% of max memory allocated to the JVM:

…so try with 20GB for example and see how that goes.