I have a (connect) web application that, under certain strees, accumulates connections in the CLOSE_WAIT state.
At some point, I need to reboot the application.
Everytime I run the test —no matter if the application is running in cluster mode or not— the first connection remains in CLOSE_WAIT state
-----
$ ss -e | grep 3000 | grep CLOSE
-----
I have tried to stress the application with ab or vegeta, but the issue only arises with wrk. As I said, I'm facing this issue in production with normal browsers when there is a peak.
I run wrk with -4 -c400 -d30s params.
Any hint or tip? I have no idea how to debug this issue.