alibaba / cobar

a proxy for sharding databases and tables
Apache License 2.0
3.21k stars 1.22k forks source link

idleTimeout新设置参数未生效 #63

Open Gejove opened 8 years ago

Gejove commented 8 years ago

求教:感谢!

问题描述: 8月18日设置后,重新启动cobar —cobar设置连接空闲断开间隔时间(秒数,30天) vi server.xml

2592000

8月24日查询日志有如下idle timeout; 11:11:30,315 WARN [thread=TimerExecutor2,class=ServerConnection,host=10.172.189.85,port=53125,schema=clydesdale] idle timeout 11:11:30,315 WARN [thread=TimerExecutor2,class=ServerConnection,host=10.172.189.85,port=44007,schema=clydesdale] idle timeout 11:11:30,318 WARN [thread=TimerExecutor2,class=ServerConnection,host=10.172.189.85,port=40209,schema=clydesdale] idle timeout

liuhuanting commented 8 years ago

连接空闲超时时间在FrontendConnectionFactory类中写死了 protected long idleTimeout = 8 * 3600 * 1000L;