Scripted decision node API call - Connection closed

Hi,
We are getting Connection closed for httpClient.send sometime , is there way to find out the issue why its failing with Connection closed. We are using AM 6.5.2.2 so calling IDM API which sometime giving connection closed on AM script log. but when we are checking IDM log its 200 success.
java.util.concurrent.ExecutionException: java.lang.RuntimeException: org.apache.http.ConnectionClosedException: Connection closed

Any help on this please .

Regards,
Biswajit

Hi sahoob,

I wanted to reach out and see if you’re still experiencing an intermittent Connection closed with the httpClient?

If yes, have you tried increasing the timeout to see where the threshold is when it fails? It would be good to know the threshold and related activity (if this is related to load).

Also, does this happen only with IDM? (how about other sites?). Is this happening more when stress tests, or do you see this often when the system is idle?

The exception being seen in the logs looks to indicate that the connection is closed when a request is sent. It’s not clear if this is happening after a request timeout.

java.util.concurrent.ExecutionException: java.lang.RuntimeException: org.apache.http.ConnectionClosedException: Connection closed

The stack trace for the ‘Connection close’ seems to be missing the exception information immediately after.

To investigate this issue further, you can enable message debug as it will generate the Apache HttpClient debug for the outgoing (request/response) to the files org.* It will help to see if there is any traffic to correlate.

  • Additionally, a TCP dump/packet capture with correlating timestamps when the script times out to illustrate and confirm there is no data transfer apart from a TCP handshake.
  • Message Level AM debug logs and HAR file with corresponding timestamps.

The following KB articles will help guide you through enabling debug level and creating a HAR file.

I hope you find this helpful.

Thank you,
Sheila