While trying to upgrade the gateway you might come across this error "unable to upgrade database due to error java heap space "
1) Make a backup copy of /opt/SecureSpan/Appliance/libexec/ssgconfig_launch
2) Modify this line in the ssgconfig_launch file to read export OPTIONS="${JAVA_OPTS} -Xmx256m -Dcom.l7tech.gateway.config.clearConsole=true"
3) Execute this command: sudo -u layer7 /opt/SecureSpan/Appliance/libexec/ssgconfig_launch -databaseUgrade
4) If this fails with the same Java Heap error change the -Xmx value to 512m