Solved

mysql transaction per seconds

Posted on 2012-04-10
2
477 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
[X]
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
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

632 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