<div><div>I think we start <span style="line-height: 1.5;">heartbeat. this is rabbitmq.config<span id="_editor_bookmark_start_7" style="display: none; line-height: 0px;">‍</span></span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{rabbitmq_stomp,[ </div><div>                {tcp_listeners, [61613]},</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>{heartbeat,200}</div><div>         ]}<span id="_editor_bookmark_start_6" style="display: none; line-height: 0px;">‍</span></div></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Michael Klishin";<mklishin@gopivotal.com>;</div><div><b>发送时间:</b> 2014年6月30日(星期一) 下午2:24</div><div><b>收件人:</b> "zane"<37714275@qq.com>; "Legacy list about RabbitMQ"<rabbitmq-discuss@lists.rabbitmq.com>; <wbr></div><div></div><div><b>主题:</b> Re: [rabbitmq-discuss]回复:  No timeout and sockets notclosed forStomp</div></div><div><br></div>On 30 June 2014 at 10:20:27, zane (37714275@qq.com) wrote:<br>> > our connections are increasing, but we know that connections  <br>> should not be so high in morning. and we found no timeout<br>> for connections. <br><br>Are you sure your apps properly close the connections they no longer need?<br>Have you tried enabling STOMP heartbeats? [1] <br><br>> so can you tell me how the timeout be configured  <br>> OS-wide?<br><br>[2], [3]<br><br>1. http://stomp.github.io/stomp-specification-1.2.html#Heart-beating<br>2. http://en.wikipedia.org/wiki/Keepalive#TCP_keepalive<br>3. http://www.cyberciti.biz/tips/linux-increasing-or-decreasing-tcp-sockets-timeouts.html<br>--  <br>MK  <br><br>Staff Software Engineer, Pivotal/RabbitMQ<br></div>