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/
is-Programmer 是一个面向 Linux 爱好者与程序员的 Blog 系统,具有简洁的风格,方便的代码高亮和数学公式插入功能,适合撰写学习笔记和技术文档。
Host by is-Programmer.com | Power by Chito 1.3.3 beta
2007年12月28日 05:21 8错
2008年1月06日 21:01 差不多就是show processlist ?
2008年1月06日 23:33 其实原理就是定时运行 show processlist 和 show status,:)
2024年1月27日 15:32
I exploit solely premium quality products -- you will observe these individuals on: Pest Control Kissimmee
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
2024年1月27日 15:37
I would recommend my profile is important to me, I invite you to discuss this topic. Pest Control Oviedo
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
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
2024年3月20日 14:42
For true fans of this thread I will address is a free online! link