In order to increase the memory snappy can use, you need to edit snappy.ini
The cache size and the thread settings should be taken from the snap.properties files in the etc directory of the SNAP installation folder.
The properties are: snap.jai.tileCacheSize and snap.parallelism