MySQL 4个timeout参数说明
2012-12-19 09:41
330 查看
4个timeout都是为了防止某一个链接长时间占用一数据库的描述符,又不干事情,或者网络有问题没有释放
这个描述符,线程阻塞种种资源浪费的情况.我们要主动的"卡"掉对端!
首先看看这4个timeout在mysql5.1手册里的英文解释:
connect_timeout
The number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake.
interactive_timeout
The number of seconds the server waits for activity on an interactive connection before closing it.
wait_timeout
The number of seconds the server waits for activity on a noninteractive connection before closing it.
net_read_timeout
The number of seconds to wait for more data from a connection before aborting the read.
net_write_timeout
The number of seconds to wait for a block to be written to a connection before aborting the write.
从意思上可以理解为
connect_timeout在获取连接阶段(authenticate)起作用,
interactive_timeout和wait_timeout在连接空闲阶段(sleep)起作用,
net_read_timeout和net_write_timeout在连接繁忙阶段(query)起作用。
这个描述符,线程阻塞种种资源浪费的情况.我们要主动的"卡"掉对端!
首先看看这4个timeout在mysql5.1手册里的英文解释:
connect_timeout
The number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake.
interactive_timeout
The number of seconds the server waits for activity on an interactive connection before closing it.
wait_timeout
The number of seconds the server waits for activity on a noninteractive connection before closing it.
net_read_timeout
The number of seconds to wait for more data from a connection before aborting the read.
net_write_timeout
The number of seconds to wait for a block to be written to a connection before aborting the write.
从意思上可以理解为
connect_timeout在获取连接阶段(authenticate)起作用,
interactive_timeout和wait_timeout在连接空闲阶段(sleep)起作用,
net_read_timeout和net_write_timeout在连接繁忙阶段(query)起作用。
相关文章推荐
- MySQL的timeout参数说明
- (转)在fusionio上mysql几个参数的修改说明
- day07_MySQL CMake参数说明手册
- mysql 部分参数说明
- mysql 数据库连接参数说明
- Android menu add中的4个参数说明
- MySQL中的配置参数interactive_timeout和wait_timeout(可能导致过多sleep进程的两个参数)
- Oracle RAC CSS 超时计算 及 参数 misscount, Disktimeout 说明
- 关于Mysql链接参数的说明
- MySQL InnoDB的一些参数说明
- mysql sql state的参数说明
- mysql一些常见常用的配置参数的简单说明
- mysql中cmake常用参数说明
- Mysql配置参数sync_binlog说明
- mysql 性能优化查看命令explain参数说明
- MySQL 服务器参数说明及查看,设置方法
- MYSQL参数 DELAY_KEY_WRITE说明
- Oracle RAC CSS 超时计算 及 参数 misscount, Disktimeout 说明
- MySQL性能优化各个参数解释说明
- Mysql JDBC URL 中常用参数说明