This topic created in 4386 days ago, the information mentioned may be changed or developed.
网站突然访问变慢了很多 使用show processlist 命令 发现
有一条“DESC tablename" 的info Time 列值为21 state 列的值为”Opening Tables“ ,我在mysql 中执行了命令“DESC tablename" 速度很快,另外检查了表,包括索引、表是否损坏等,都没异常。为什么 这条命令执行时间那么长呢?
2 replies 2014-04-28 19:23:13 +08:00  | | 1 gfreezy Apr 26, 2014 不知道原因。推介个percona的工具 pt-query-digest |
 | | 2 hellohacker Apr 28, 2014 如果使用kill+进程id号 那么网站访问速度就上去了 能说明是 这个进程出问题了吗,还是说其他的sql语句慢 导致这个进程慢了呢? |