• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hellohacker
V2EX  ›  程序员

Mysql: show processlist 命令的一个问题

  •  
  •   hellohacker · Apr 26, 2014 · 3818 views
    This topic created in 4578 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
    gfreezy
    gfreezy
    Apr 26, 2014
    1
    不知道原因。推介个percona的工具 pt-query-digest
    hellohacker
    hellohacker
    OP
    Apr 28, 2014
    2
    如果使用kill+进程id号 那么网站访问速度就上去了 能说明是 这个进程出问题了吗,还是说其他的sql语句慢 导致这个进程慢了呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   686 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 20:04 · PVG 04:04 · LAX 12:04 · JFK 15:04
    ♥ Do have faith in what you're doing.