{"id":657,"date":"2010-08-31T18:46:22","date_gmt":"2010-08-31T12:46:22","guid":{"rendered":"http:\/\/techsatwork.com\/blog\/?p=657"},"modified":"2016-01-07T11:31:09","modified_gmt":"2016-01-07T05:31:09","slug":"take-your-measuring-cup","status":"publish","type":"post","link":"https:\/\/techsatwork.com\/?p=657","title":{"rendered":"Take your measuring cup!"},"content":{"rendered":"<p>How many transaction does your db2 database handle in a day and what is the transaction rate per second ?\u00c2\u00a0 Well its not a difficult to answer. Simply take snapshots of your database periodically and viola you have your answer. \u00c2\u00a0 I put few scripts together to make it easier for you. \u00c2\u00a0In here I have attached a\u00c2\u00a0<a href=\"https:\/\/techsatwork.com\/blog\/wp-content\/uploads\/2010\/08\/transaction_rate_monitor.tar.gz\">zipped tar file<\/a> and a <a href=\"https:\/\/techsatwork.com\/blog\/wp-content\/uploads\/2010\/08\/Transaction-per-second.xlsx\">sample excel spreadsheet<\/a>. \u00c2\u00a0 There are four files on the zipped tar file. \u00c2\u00a0I have a shell script(run_transaction_monitor.sh)that kicks off the main process in the background, currently the process continues to run in the background until you kill it. The process wakes up every 10 seconds takes a snapshot of the database and stores it in a table. I have included the ddl for the table as well. \u00c2\u00a0When ever you are ready to extract the data, run the extract script that I have included and it will extract the data in a csv format. \u00c2\u00a0You can import it to the sample excel spreadsheet and it will generate the graphs for you.<br \/>\nThe following files are included in the attached transaction_rate_monitor.tar.gz file:<br \/>\n1. database_transaction.ddl \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 &gt; ddl for creating the snapshot table<br \/>\n2. extract_transaction_monitor_data.sh \u00c2\u00a0 \u00c2\u00a0&gt; shell script to extract data to a csv file.<br \/>\n3. transaction_monitor.sh \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 &gt; main script that gathers statistics.<br \/>\n4. run_transaction_monitor.sh \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0&gt; submits transaction_monitor in background<\/p>\n<p>If you need any help with these or have any comments, as always let me know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How many transaction does your db2 database handle in a day and what is the transaction rate per second ?\u00c2\u00a0 Well its not a difficult to answer. Simply take snapshots of your database periodically and viola you have your answer. \u00c2\u00a0 I put few scripts together to make it easier for you. \u00c2\u00a0In here I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[303,3],"tags":[943,331,335,332,333,330,334],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-database","category-db2","tag-db2","tag-db2-analysis","tag-db2-transaction-rate","tag-snapshot","tag-tps","tag-transaction","tag-transactions-per-second"],"_links":{"self":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=657"}],"version-history":[{"count":5,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":1517,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions\/1517"}],"wp:attachment":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}