V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hellohacker
V2EX  ›  程序员

Mysql: show processlist 命令的一个问题

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