Recieving NL-NETWORK-01 java.nio.channels.ClosedChannelException errors in Load Tests

  • 30 April 2024
  • 1 reply

Hi, I keep getting java.nio.channels.ClosedChannelException on the same requests and cannot pinpoint this issue. I am running a 3000 user load test and start receiving this error at the same point in the test when we reach the peak load.

I have also increased the tcp conncurrent connections on my controllers and  have http parallel connections set to 15 for each population.
Would really appreciate any assistance regarding this issue.

1 reply

Userlevel 2
Badge +1

Hello, this error indicates a communication issue between the load generator and the server (or intermediate server like proxy, load balancer etc… if any).

The fact that it starts at a specific load seems to imply a limit reached somewhere. But increasing the number of TCP connections is not the way to go as it may stress much more your servers.

To troubleshoot that issue i would check the points below:

  • What is particular with that request? Is it targeting a specific server compared to the other ones?
  • If you used multiple load generators do they all raise this error?
  • What is the response time of the errors? Are they always the same?
  • If you are going through a proxy or load balancer do you have a way to bypass it?
  • While having that issue are you able to connect to your application from a browser installed on one load generator and replicate the error? You may open the developer tools of the browser to check the requests status issued by the browser