Re: websocket: connections not getting closed properly

2017-06-29 Thread Sandeep Dhameshia
Thanks Anurag, Will keep an eye on this. Btw am not using auto scaling. On Jun 29, 2017 17:59, "anurag gupta" wrote: > Beware of the AWS ALB, It has a nasty bug where it terminates a chunk of > connections even if they are active. This happens after 10-12 hrs. and >

Re: websocket: connections not getting closed properly

2017-06-29 Thread anurag gupta
Beware of the AWS ALB, It has a nasty bug where it terminates a chunk of connections even if they are active. This happens after 10-12 hrs. and related to the autoscaling of ALB. On Thu, Jun 29, 2017 at 5:40 PM, Sandeep Dhameshia < sandeep.dhames...@gmail.com> wrote: > Update: > > Started using

Re: websocket: connections not getting closed properly

2017-06-29 Thread Sandeep Dhameshia
Update: Started using AWS Application Load Balancer, with SSL offload. This has reduced CPU utilization by 5 times! And most importantly, wrt this mail chain, num of connections looks stable now, with same load. Can see some Client TLS Negotiations Errors in LB's monitoring console. Num of

Re: websocket: connections not getting closed properly

2017-06-23 Thread Sandeep Dhameshia
One more doubt, does it log anything when max connections limit is reached and it starts dropping requests? This happened few days back, and since it is a production server I did not have time to see num of file descriptors for tomcat process and response code to client. Nothing was logged,

Re: websocket: connections not getting closed properly

2017-06-20 Thread Sandeep Dhameshia
Thanks for your reply Mark, *log msg*: Jun 08, 2017 10:13:07 AM org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer doClose INFO: Failed to close the ServletOutputStream connection cleanly java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.write0(Native Method) at

Re: websocket: connections not getting closed properly

2017-06-20 Thread Mark Thomas
On 20/06/2017 18:48, Sandeep Dhameshia wrote: > Hello, > > I don't know about any format in which I should write this mail, so please > forgive me if there's any format to follow. > > I am using v8.0.43 in latest Amazon Linux AMI(2017.03), on m4.large > instance. I have deployed modified example

websocket: connections not getting closed properly

2017-06-20 Thread Sandeep Dhameshia
Hello, I don't know about any format in which I should write this mail, so please forgive me if there's any format to follow. I am using v8.0.43 in latest Amazon Linux AMI(2017.03), on m4.large instance. I have deployed modified example Chat application. Everything works fine as expected, but I