I am trying to benchmark WebSocket server using WebsocketClient with the thread pool.All of my WebSocket connections are established but after few messages suddenly few of the connections are closing, with 1006 error with reason "WebSocket Read EOF". How should I debug this further? Please suggest some option to benchmark this one.
// Code to start websocket client
WebSocketClient webSocketClient = new WebSocketClient(sec);
webSocketClient.setMaxIdleTimeout(180000);
webSocketClient.setAsyncWriteTimeout(100000);
webSocketClient.setConnectTimeout(600000);
webSocketClient.setMaxTextMessageBufferSize(60*2048);
webSocketClient.setExecutor(Executors.newFixedThreadPool(100));
webSocketClient.start();
// To connect websocket
webSocketClient.connect(new TestSocket(instanceId, sessionId, MAX_CYCLE), new URI(wsURL), new ClientUpgradeRequest());
TestSocket
is my WebsocketAdapter instance .
Thanks