[rabbitmq-discuss] Noticed way too many open connections
michael.s.klishin at gmail.com
Mon Dec 2 19:20:03 GMT 2013
2013/12/2 cw storm <cwstorm at gmail.com>
> I'm thinking of adding setConnectionTimeOut to the open connection
> service so that if that connection/channel did not close properly, the
> rabbit mq server will close it after the timeout has been reach. Please
> let me know if this is best practice or not.
setConnectionTimeOut configures a value that's passed to Socket#connect.
What you want to set is heartbeat timeout
(say, to 30-60 seconds). Note that both server and client do not
immediately detect when their peer is unreachable
due to how TCP works (TCP connections will sit there in TIME_WAIT state for
some time). Heartbeats
enable such situations to be detected earlier.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss