Unable to create WebSocket client:
search cancel

Unable to create WebSocket client:

book

Article ID: 234022

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We are seeing below error on API GW v.10 CR03.

Due to this issue all integration testing and PT has stopped

2021-08-09T09:05:33.749+0000 INFO    6160373 com.l7tech.external.assertions.websocket.server.SSGInboundWebSocket: Terminating SSGInboundWebSocket for URL:wss://<IPAddress>/api/v1/l3/ws/notifier websocket id=4ba73da25021a740ee10afc501a55d2a:331720:HTTP/1.1. createOutboundWebSocketClient Exception:com.l7tech.external.assertions.websocket.server.UpgradeHandShakeException: com.l7tech.external.assertions.websocket.server.WebSocketConnectionManagerException: Unable to create WebSocket client: Too many open filesTerminating WebSocketClient

 

2021-08-09T09:05:33.749+0000 INFO    6160373 com.l7tech.external.assertions.websocket.server.SSGInboundWebSocket: Terminating SSGInboundWebSocket for URL:wss://<IPAddress>/api/v1/l3/ws/notifier websocket id=4ba73da25021a740ee10afc501a55d2a:331720:HTTP/1.1. Closing SSGInboundWebSocket. Reason:Failed to open local endpoint

Environment

Release : 10.0

Component : API GATEWAY

Cause

Exceeded file descriptors

DCT capture

    • Observed file descriptors, look in DCT_<name>-dct-2.3.1_2021-12-<day>_<time>_BST\kernel\proc_<your_gateway_process_id>_fd

Resolution

They no longer see the rapid increase in file descriptors, TCP close/time_wait issues seen prior to the fix.

 The hot-fix/code change contained within 

"WebSocketAssertion-10.0.00-CR04_hotfix_DE518135_upgradeJetty_closeCheckStop_3.1.aar" ensures that the outbound web-socket client connections are closed or used when they are in the appropriate state which was identified as a cause of the open file descriptor issue, and generated the following "java.nio.channels.AsynchronousCloseException".  Additionally the RPM update includes an updated version of the Jetty Web-socket library (version 9.4.43).

The hotfix provided will be included the general release version:

GW 10.1 CR02 - This will be after GW 10.0 CR05

GW 10.0  CR05 - The next CR to be released

GW 11.0