#mysql -u root -p -e '\s'
Enter password:
--------------
mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2
Connection id: 54637
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.32-Debian_7etch4-log Debian etch distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 2 days 22 hours 4 min 15 secThreads: 5 Questions: 586728 Slow queries: 77 Opens: 1277 Flush tables: 41 Open tables: 96 Queries per second avg: 2.326
--------------
#top
top - 02:13:13 up 3 days, 9:52, 2 users, load average: 4.93, 5.38, 5.74
Tasks: 74 total, 4 running, 70 sleeping, 0 stopped, 0 zombie
Cpu(s): 53.2%us, 46.8%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 767052k total, 553896k used, 213156k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16030 mysql 15 0 189m 66m 5472 S 96.2 8.9 380:08.45 mysqld
#mysqlreport
MySQL 5.0.32-Debian_7et uptime 2 22:38:47 Sun Jan 27 02:46:10 2008
__ Key _________________________________________________________________
Buffer used 6.22M of 48.00M %Used: 12.97
Current 9.45M %Usage: 19.69
Write ratio 0.56
Read ratio 0.01
__ Questions ___________________________________________________________
Total 587.64k 2.31/s
Slow 77 0.00/s %Total: 0.01 %DMS: 0.09
DMS 85.37k 0.34/s 14.53
__ Table Locks _________________________________________________________
Waited 6 0.00/s %Total: 0.01
Immediate 113.47k 0.45/s
__ Tables ______________________________________________________________
Open 96 of 96 %Cache: 100.00
Opened 1.28k 0.01/s
__ Connections _________________________________________________________
Max used 90 of 100 %Max: 90.00
Total 54.72k 0.22/s
__ Created Temp ________________________________________________________
Disk table 3.54k 0.01/s
Table 12.88k 0.05/s
File 5 0.00/s
#su - mysql -c 'ulimit -n'
1024
#mytop
MySQL on localhost (5.0.32-Debian_7etch4-log) up 2+22:50:36 [02:57:59]
Queries: 574.2k qps: 2 Slow: 0.0 Se/In/Up/De(%): 27/00/00/00
qps now: 0 Slow qps: 0.0 Threads: 5 ( 4/ 4) 00/00/00/00
Key Efficiency: 99.0% Bps in/out: 0.0/ 0.1 Now in/out: 7.9/ 1.4k
Id User Host/IP DB Time Cmd Query or State
-- ---- ------- -- ---- --- ----------
54750 root localhost film 0 Query show full processlist
596 verlihub localhost verlihub 9 Sleep
54367 filmview localhost film 7183 Query SELECT `review`,`fid` FROM `film_page` WHERE `en`='yes' AND `fi
52615 filmview localhost film 26621 Query SELECT `review`,`fid` FROM `film_page` WHERE `en`='yes' AND `fi
52242 filmview localhost film 30821 Query SELECT `review`,`fid` FROM `film_page` WHERE `en`='yes' AND `fi