LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

Mytop -- 监测你的 MySQL 数据库

galeki posted @ 2007年12月27日 23:14 in Bash 和它的朋友们 with tags mysql mytop , 3004 阅读

top 这个命令大家再熟悉不过了,另外还有他的增强版 htop,都是用来监测系统中进程的。

Mytop 也是用来监测的,不过他监测的是 MySQL 的运行状况。

用法很简单,输入 mytop -u username -p password -d database 就可以监测特定的数据库了。( 其中 username 和 password 分别是 MySQL 数据库的用户名和密码)

第一行显示了主机名称,还有至今 MySQL 的运行时间 (以 days hour:minutes:seconds 为格式)。

第二行的 Queries 显示了至今执行的 SQL 查询语句总数,另外还有目前每秒处理的查询数和速度。

第三行的 Key Efficiency 就是传说中的缓存命中率了,如果太低了你可能要调整你的 MySQL 设置,或者调整一下表的结构,后面还有目前的进出速度。

最下方的区域就是目前链接到数据库的各个线程,你可以按 k 杀死一个线程,或者按 f 了解特定线程的信息。

Mytop 的主页: http://jeremy.zawodny.com/mysql/mytop/

  • 无匹配
druggo 说:
2008年1月06日 21:01 差不多就是show processlist ?
galeki 说:
2008年1月06日 23:33 其实原理就是定时运行 show processlist 和 show status,:)
Victoria Willis 说:
2024年1月27日 15:32

I exploit solely premium quality products -- you will observe these individuals on: Pest Control Kissimmee

Victoria Willis 说:
2024年1月27日 15:34

Very good topic, similar texts are       I do not know if they are as good as your work out. Pest Control Orlando

Victoria Willis 说:
2024年1月27日 15:37

I would recommend my profile      is important to me, I invite you to discuss this topic. Pest Control Oviedo

Clay Lowe 说:
2024年2月08日 19:15

These you will then see the most important thing, the application provides you a website a powerful important internet page: Pest Control Tampa

Clay Lowe 说:
2024年3月05日 21:29

it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. buy instagram views for reels

Clay Lowe 说:
2024年3月20日 14:42

For true fans of this thread I will address      is a free online! link


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter