views:

150

answers:

3

Hello, i have a busy web server with LAMP installed, and i was wondering, is there any way to count how many queries per second (mysql) are executed in the server ?

Thank you.

+4  A: 

Try Jeremy Zawodny's excellent utility mytop.

If you have the Perl module Time::HiRes installed, mytop will automatically use it to generate high-resoution query per second information.

Bill Karwin
i don't have that installed. i found some other way mysqladmin status
Nikos
+2  A: 

There's useful information to be mined from the SHOW GLOBAL STATUS; command, including the number of queries executed (if your MySQL is 5.0.76 or later).

See http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html

Dave W. Smith
A: 

Could you try "mysqladmin status" ?

Vijay Gharge