Hi,
To whom can help.
I have a membrane service proxy(4.1.0) running on Linux box and have a REST web service running on tomcat8 behind the proxy.
Everything works fine, the proxy can route request to the service without any problem, except:
I noticed that after running for several days, there will be some sockets between the proxy and service build up.(after a week, there will be about 200 sockets dead there and never go away until restart the proxy)
most of dead sockets are at following status:
Proxy side Tomcat side
-------------- ----------------
FIN_WAIT_1 CLOSE_WAIT
or
ESTAB ESATB
Linux "ss -nt" commands shows:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
I can reproduce the above "ESTAB" dead socket by following way:
-run a client, send a GET request to the proxy, and proxy will route the request to the REST service(TOMCAT), the response will be about 3MB in size.
-after the client start receiving content, kill the client.
-this will end up with the above "ESTAB" state sockets pair, and they will never go away until restart the proxy.(or tomcat).
My questions are:
Is this a known issue of the proxy? or there is a setting in the proxy can prevent this happen?
I could not found any clue in the doc and forum, is there anybody have this problem before?
Any help or thought is welcome.
Thanks in advance,