After migrating from Appliance Gateway 10.1 to Software Gateway 11.x , we see a bad GC behavior on startup.
On the GW10 appliance servers, the following properties are set by default in "/opt/SecureSpan/Gateway/runtime/etc/profile.d/appliancedefs.sh":
NODE_OPTS="-Xss256k -XX:+UseG1GC -Xmx${java_ram}k -Xms${java_ram}k -XX:G1HeapRegionSize=${G1HeapRegionSize} -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:InitiatingHeapOccupancyPercent=70 -XX:G1NewSizePercent=20 -XX:G1MaxNewSizePercent=60"
On GW11 Sofware gateway the GC and Xmx is set but Xms is not set which does not allocate all Heap space on startup causing a lot of GC activity.
On a software gateway we do not set the initial heap space to the max heap space by design.
Which means the memory is not allocated on startup but when needed.
This would have some impact on the Garbage collection as on the appliance we allocate the whole heap space on startup .
Additional JAVA options can be set in the node.properties file on a software gateway .
Modify /opt/SecureSpan/Gateway/node/default/etc/conf/node.properties and add the line.
node.java.opts = -Xms{size}m
Restart ssg service