Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

mysql transaction per seconds

Posted on 2012-04-10
2
475 Views
Last Modified: 2012-04-25
hi
i belived
SHOW GLOBAL STATUS LIKE ‘com_insert’;

will tell you , how much insert happening in the db

but can you pleaes tell me
whats the theory behind finding out

how much transaction per second my server handling ??

we use innodb engine.
thanks
0
Comment
Question by:fosiul01
2 Comments
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 37830870
If by transaction you mean group of commands, the last one being a commit, there's a com_commit counter.

But if you want to track each select, insert, update, delete, prepared statement, etc, you have to look at a lot of counters.  For example, depending on whether it gets the results from the query cache or a direct read from the tables, either the qcache_hits or the com_select counter gets incremented.  http://dev.mysql.com/doc/refman/5.1/en/server-status-variables.html#statvar_Com_xxx would be a good starting point.

Another way I can think of is to turn on the slow query log and set long_query_time = 0.  This will log all queries, which then you will parse using a tool like mysql_slow_log_parser (http://www.retards.org/projects/mysql/).  The summary report there can give how many times each query was run, which you can sum up to give you the total number of SQL's run during the time you were logging all commands.  WARNING: the logfile can get huge fast, and you need to run the parser on a machine with huge memory.
0
 
LVL 29

Author Comment

by:fosiul01
ID: 37834797
hi thanks for reply ..

when you login to mysql , then press \s

it give you a Queries per second

examaple , mine is 300/s

is not it QPS ?

or that means diffferent thing .
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question