nobaloney
NoBaloney Internet Svcs - In Memoriam †
It took me a while but I finally got mtop installed on a CentOS 5 distribution.
Now I can't figure out how to use it.
Anyone use it?
Here's what mtop --help says:
With that in mind, I used this command:
but i get an almost empty screen on a busy server:
Am I missing something? What I want to see is any slow queries from all the databases.
Jeff
Now I can't figure out how to use it.
Anyone use it?
Here's what mtop --help says:
Code:
--version Show version number and exit
--help Show this screen and exit
--host={mysql_host} Connect to the MySQL server on {mysql_host}
--dbuser={mysql_user} Connect to the MySQL server as {mysql_user}
--password={mysqluser_pw} Use {mysqluser_pw} when connecting
--seconds={refresh} Refresh the screen each {refresh} seconds
--[no]idle Display/don't display idle threads
--filter-user={regex} Filter display based on user regular expression
--filter-host={regex} Filter display based on host regular expression
--filter-db={regex} Filter display based on db regular expression
--filter-command={regex} Filter display based on command regular expression
--filter-state={regex} Filter display based on state regular expression
--filter-info={regex} Filter display based on info regular expression
--user={user} Display threads for only {user}
--manualrefresh Wait for user input between refreshes
Code:
mtop --host=localhost --dbuser=da_admin --password=xxxxxxxx
Code:
localhost mysqld 5.0.67-community-log up 0 day(s), 2:16 hrs
1 threads: 1 running, 7 cached. Queries/slow: 729.0K/0 Cache Hit: 99.93%
Opened tables: 0 RRN: 700 TLW: 15 SFJ: 0 SMP: 0 QPS: 61
ID USER HOST DB TIME COMMAND STATE INFO
4395 da_admin localhost Query show full processlist
---
Jeff