Large Number Of Sockets In Close_Wait State

Document ID : KB000044655
Last Modified Date : 14/02/2018
Show Technical Document Details

Symptom:

It may be noticed that the gateway server is having performance issues and there are a

large number of sockets in a close_wait state seen in netstat output taken on the gateway.

 

Environment:

This situation is applicable to any gateway version running at

or higher than 8.x or 9.x

 

Cause:

This situation can occur for many reasons such as a server

in the environment which is not responding in a timely manner or

not properly terminating the socket connection.

 

Workaround:

Implement the following changes to enable the gateways state pool functionality

which will limit the number of threads and sockets used per routing assertion

along with terminating stale and unresponsive backend sockets.

 

add the following to the /opt/SecureSpan/Gateway/node/default/etc/conf/system.properties file:

com.l7tech.server.policy.assertion.ServerHttpRoutingAssertion.statePool.enable=true

 

modify the following cluster wide property from 0s to 5s

io.httpConnectionIdleTimeout


Restart the gateway for the changes to take effect.