SSH routing error: Failed to retrieve ssh session: Pool exhausted

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

The Route via SSH2 assertion is used to secure requests from the Gateway to backend services to provide SCP and SFTP (SSH File Transfer Protocol) support for the Gateway, so that SCP and SFTP outbound requests can be made to an external SSH server.

Question:

 

The SFTP access through "List via SFTP" or "Get via SFTP" failed with such error message as:

 

 

com.l7tecvbh.external.assertions.ssh.server.ServerSshRouteAssertion:9434:
SSH routing error: Failed to retrieve ssh session: Pool exhausted

 

These assertions can be created by the Route via SSH2 assertion.

 

Environment:
All
Answer:

The cluster wide property ssh.session.pool.maxActive defines the maximum number of sessions (per key) that can be allocated by the pool (checked out to client threads) at one time (Default: 10).

After the maximum number of sessions is reached, the session pool is exhausted, and the assertion fails.

To resolve the problem, increase the value of the property ssh.session.pool.maxActive.

Additional Information:

Regarding the cluster wide property ssh.session.pool.maxActive, see the docops for detail.