ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Getting 100% memory swap error in on node of 4 in production


Article ID: 238982


Updated On:


CA API Gateway


We are getting - CRITICAL: Swap usage was 100.00 % (Used: 2.00 GiB, Free: 0.00 GiB, Total: 2.00 GiB)

This error in only one node that is also running master SSG DB 



TOP shows all gateway running between 13GB and 16GB memory, the gateway with master SSG DB will always run a little higher 

Before a major Garbage collection (GC) occurs on the primary Gateway total memory runs over 16GB close to 2GB, since SWAP size is 2 GB this will result in alerts (not a critical event but can be addressed)



Release : 10.1

Component :


For the node that host the master SSG DB use 5/8 instead of 3/4 as multiplier so it would not take as much of the system memory 

Not recommended to increase the gateway memory on the gateway hosting SSG DB to 3/4

NOTE:  Other nodes can be set to 3/4

# vi /opt/SecureSpan/Gateway/runtime/etc/profile.d/

Locate multiplier

system_ram=`grep MemTotal /proc/meminfo | awk '{print $2}'`

# Maximum amount of RAM to use

# ram units in Kilobytes


let java_ram="$system_ram*$multiplier"



After this change a restart of the gateway is required