Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@XMPP:/var/log/mysql# pt-query-digest mysql-slow.log
- mysql-slow.log: 6% 07:16 remain
- mysql-slow.log: 15% 05:30 remain
- mysql-slow.log: 24% 04:43 remain
- mysql-slow.log: 32% 04:10 remain
- mysql-slow.log: 40% 03:43 remain
- mysql-slow.log: 47% 03:21 remain
- mysql-slow.log: 55% 02:49 remain
- mysql-slow.log: 63% 02:16 remain
- mysql-slow.log: 70% 01:54 remain
- mysql-slow.log: 75% 01:35 remain
- mysql-slow.log: 83% 01:06 remain
- mysql-slow.log: 92% 00:29 remain
- mysql-slow.log: 99% 00:02 remain
- # 394.2s user time, 3.7s system time, 21.27M rss, 64.35M vsz
- # Current date: Fri Jun 22 08:16:24 2012
- # Hostname: XMPP.xgate.com.hk
- # Files: mysql-slow.log
- # Overall: 1.53M total, 21 unique, 294.37 QPS, 1.13x concurrency _________
- # Time range: 2012-06-22 06:42:37 to 08:09:01
- # Attribute total min max avg 95% stddev median
- # ============ ======= ======= ======= ======= ======= ======= =======
- # Exec time 5834s 1us 1s 4ms 17ms 15ms 467us
- # Lock time 162s 0 376ms 106us 273us 458us 69us
- # Rows sent 2.20M 0 129 1.51 0.99 6.87 0.99
- # Rows examine 3.71M 0 195.32k 2.55 0.99 390.17 0.99
- # Query size 1.71G 8 7.70k 1.17k 7.31k 2.51k 65.89
- # Profile
- # Rank Query ID Response time Calls R/Call Apdx V/M Item
- # ==== ================== =============== ====== ====== ==== ===== =======
- # 1 0x9112934D2E0EBE7D 2816.9185 48.3% 235062 0.0120 1.00 0.07 INSERT tig_pairs
- # 2 0x148CABBFD4603D80 1871.9574 32.1% 226626 0.0083 1.00 0.05 DELETE tig_pairs
- # 3 0x3A2DF5C4FB9A3168 420.2191 7.2% 57665 0.0073 1.00 0.04 CALL TigUserLogout
- # 4 0xA73D290AB3EA03C3 144.5109 2.5% 431889 0.0003 1.00 0.01 CALL TigGetUserDBUid
- # 5 0x9BC12AC7409886BB 135.8507 2.3% 307336 0.0004 1.00 0.00 SELECT tig_nodes
- # 6 0xFC6FB130BCD2AC4A 122.0492 2.1% 16955 0.0072 1.00 0.04 CALL TigAddNode
- # 7 0xDCDFAA0337705F47 85.9583 1.5% 30104 0.0029 1.00 0.00 SELECT tig_users
- # MISC 0xMISC 236.0850 4.0% 220381 0.0011 NS 0.0 <14 ITEMS>
- # Query 1: 45.34 QPS, 0.54x concurrency, ID 0x9112934D2E0EBE7D at byte 1897881304
- # Scores: Apdex = 1.00 [1.0], V/M = 0.07
- # Query_time sparkline: | _^.__ |
- # Time range: 2012-06-22 06:42:37 to 08:09:01
- # Attribute pct total min max avg 95% stddev median
- # ============ === ======= ======= ======= ======= ======= ======= =======
- # Count 15 235062
- # Exec time 48 2817s 335us 1s 12ms 42ms 29ms 3ms
- # Lock time 35 57s 0 88ms 241us 366us 230us 214us
- # Rows sent 0 0 0 0 0 0 0 0
- # Rows examine 0 0 0 0 0 0 0 0
- # Query size 91 1.56G 81 7.70k 6.95k 7.31k 1.57k 7.31k
- # String:
- # Databases tigasedb
- # Hosts localhost
- # Users tigase_user
- # Query_time distribution
- # 1us
- # 10us
- # 100us #
- # 1ms ################################################################
- # 10ms #####################
- # 100ms #
- # 1s #
- # 10s+
- # Tables
- # SHOW TABLE STATUS FROM `tigasedb` LIKE 'tig_pairs'\G
- # SHOW CREATE TABLE `tigasedb`.`tig_pairs`\G
- insert into tig_pairs (nid, uid, pkey, pval) values (182070, 182219, 'roster', '<contact weight="1.0" jid="+391167758@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167768@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167745@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167730@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167773@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167735@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167727@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167765@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167756@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167729@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167750@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167743@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167755@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167741@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167767@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167731@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167760@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167737@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167770@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167734@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167769@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167751@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167771@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167742@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167732@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167759@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167763@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167753@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167748@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167774@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167746@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167764@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167740@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167724@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167736@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167733@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167726@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167772@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167762@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167754@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167738@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167766@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167747@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167744@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167725@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167757@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167739@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167761@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167752@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="none" activity="1.0" last-seen="1000"/><contact weight="1.0" jid="+391167728@xmpp.xgate.com.hk" name="" preped="simple" groups="XGate Dynamics" subs="both" activity="1.0" last-seen="1000"/>')\G
- # Query 2: 43.72 QPS, 0.36x concurrency, ID 0x148CABBFD4603D80 at byte 1259274069
- # Scores: Apdex = 1.00 [1.0], V/M = 0.05
- # Query_time sparkline: | __^._ |
- # Time range: 2012-06-22 06:42:37 to 08:09:01
- # Attribute pct total min max avg 95% stddev median
- # ============ === ======= ======= ======= ======= ======= ======= =======
- # Count 14 226626
- # Exec time 32 1872s 72us 912ms 8ms 31ms 20ms 2ms
- # Lock time 7 12s 0 92ms 54us 84us 200us 44us
- # Rows sent 0 0 0 0 0 0 0 0
- # Rows examine 5 210.79k 0 1 0.95 0.99 0.21 0.99
- # Query size 0 13.66M 59 67 63.19 62.76 0.07 62.76
- # String:
- # Databases tigasedb
- # Hosts localhost
- # Users tigase_user
- # Query_time distribution
- # 1us
- # 10us #
- # 100us ############
- # 1ms ################################################################
- # 10ms ##################
- # 100ms #
- # 1s
- # 10s+
- # Tables
- # SHOW TABLE STATUS FROM `tigasedb` LIKE 'tig_pairs'\G
- # SHOW CREATE TABLE `tigasedb`.`tig_pairs`\G
- delete from tig_pairs where (nid = 40418) AND (pkey = 'roster')\G
- # Converted for EXPLAIN
- # EXPLAIN /*!50100 PARTITIONS*/
- select * from tig_pairs where (nid = 40418) AND (pkey = 'roster')\G
- # Query 3: 11.70 QPS, 0.09x concurrency, ID 0x3A2DF5C4FB9A3168 at byte 1206612317
- # Scores: Apdex = 1.00 [1.0], V/M = 0.04
- # Query_time sparkline: | _^__ |
- # Time range: 2012-06-22 06:46:52 to 08:09:01
- # Attribute pct total min max avg 95% stddev median
- # ============ === ======= ======= ======= ======= ======= ======= =======
- # Count 3 57665
- # Exec time 7 420s 482us 902ms 7ms 30ms 18ms 2ms
- # Lock time 3 5s 40us 16ms 84us 131us 86us 73us
- # Rows sent 0 0 0 0 0 0 0 0
- # Rows examine 1 56.31k 1 1 1 1 0 1
- # Query size 0 2.70M 45 50 49.05 49.17 0.83 46.83
- # String:
- # Databases tigasedb
- # Hosts localhost
- # Users tigase_user
- # Query_time distribution
- # 1us
- # 10us
- # 100us #######
- # 1ms ################################################################
- # 10ms ###############
- # 100ms #
- # 1s
- # 10s+
- CALL TigUserLogout('+39127262@xmpp.xgate.com.hk')\G
- # Query 4: 83.31 QPS, 0.03x concurrency, ID 0xA73D290AB3EA03C3 at byte 807559265
- # Scores: Apdex = 1.00 [1.0], V/M = 0.01
- # Query_time sparkline: | ^___ |
- # Time range: 2012-06-22 06:42:37 to 08:09:01
- # Attribute pct total min max avg 95% stddev median
- # ============ === ======= ======= ======= ======= ======= ======= =======
- # Count 28 431889
- # Exec time 2 145s 100us 379ms 334us 424us 1ms 247us
- # Lock time 23 38s 0 24ms 88us 138us 93us 76us
- # Rows sent 18 421.74k 0 1 1.00 0.99 0.01 0.99
- # Rows examine 11 421.74k 0 1 1.00 0.99 0.01 0.99
- # Query size 1 21.05M 47 52 51.10 51.63 1.04 49.17
- # String:
- # Databases tigasedb
- # Hosts localhost
- # Users tigase_user
- # Query_time distribution
- # 1us
- # 10us
- # 100us ################################################################
- # 1ms #
- # 10ms #
- # 100ms #
- # 1s
- # 10s+
- CALL TigGetUserDBUid('+3917211@xmpp.xgate.com.hk')\G
- # Query 5: 59.29 QPS, 0.03x concurrency, ID 0x9BC12AC7409886BB at byte 536484383
- # Scores: Apdex = 1.00 [1.0], V/M = 0.00
- # Query_time sparkline: | ^___ |
- # Time range: 2012-06-22 06:42:37 to 08:09:01
- # Attribute pct total min max avg 95% stddev median
- # ============ === ======= ======= ======= ======= ======= ======= =======
- # Count 20 307336
- # Exec time 2 136s 132us 197ms 442us 568us 1ms 348us
- # Lock time 11 19s 0 111ms 60us 93us 227us 49us
- # Rows sent 13 300.13k 0 1 1.00 0.99 0.00 0.99
- # Rows examine 7 300.13k 0 1 1.00 0.99 0.00 0.99
- # Query size 1 28.79M 94 99 98.22 97.36 0.12 97.36
- # String:
- # Databases tigasedb
- # Hosts localhost
- # Users tigase_user
- # Query_time distribution
- # 1us
- # 10us
- # 100us ################################################################
- # 1ms #
- # 10ms #
- # 100ms #
- # 1s
- # 10s+
- # Tables
- # SHOW TABLE STATUS FROM `tigasedb` LIKE 'tig_nodes'\G
- # SHOW CREATE TABLE `tigasedb`.`tig_nodes`\G
- # EXPLAIN /*!50100 PARTITIONS*/
- select nid as nid1 from tig_nodes where (uid = 32423) AND (parent_nid is null) AND (node = 'root')\G
- # Query 6: 17.70 QPS, 0.13x concurrency, ID 0xFC6FB130BCD2AC4A at byte 1496940393
- # Scores: Apdex = 1.00 [1.0], V/M = 0.04
- # Query_time sparkline: | _^__ |
- # Time range: 2012-06-22 07:07:51 to 07:23:49
- # Attribute pct total min max avg 95% stddev median
- # ============ === ======= ======= ======= ======= ======= ======= =======
- # Count 1 16955
- # Exec time 2 122s 512us 506ms 7ms 28ms 18ms 2ms
- # Lock time 0 1s 43us 2ms 85us 131us 38us 76us
- # Rows sent 0 16.56k 1 1 1 1 0 1
- # Rows examine 0 0 0 0 0 0 0 0
- # Query size 0 658.99k 39 42 39.80 40.45 0.58 38.53
- # String:
- # Databases tigasedb
- # Hosts localhost
- # Users tigase_user
- # Query_time distribution
- # 1us
- # 10us
- # 100us ########
- # 1ms ################################################################
- # 10ms ##############
- # 100ms #
- # 1s
- # 10s+
- CALL TigAddNode(316751, 85207, 'XGate')\G
- # Query 7: 11.84 QPS, 0.03x concurrency, ID 0xDCDFAA0337705F47 at byte 790773599
- # Scores: Apdex = 1.00 [1.0], V/M = 0.00
- # Query_time sparkline: | _^__ |
- # Time range: 2012-06-22 06:42:38 to 07:25:00
- # Attribute pct total min max avg 95% stddev median
- # ============ === ======= ======= ======= ======= ======= ======= =======
- # Count 1 30104
- # Exec time 1 86s 222us 174ms 3ms 4ms 4ms 2ms
- # Lock time 2 4s 0 5ms 124us 185us 87us 103us
- # Rows sent 65 1.44M 0 50 50.00 49.17 0.28 49.17
- # Rows examine 38 1.44M 0 50 50.00 49.17 0.28 49.17
- # Query size 2 45.78M 1.51k 1.61k 1.56k 1.53k 23.46 1.53k
- # String:
- # Databases tigasedb
- # Hosts localhost
- # Users tigase_user
- # Query_time distribution
- # 1us
- # 10us
- # 100us #
- # 1ms ################################################################
- # 10ms #
- # 100ms #
- # 1s
- # 10s+
- # Tables
- # SHOW TABLE STATUS FROM `tigasedb` LIKE 'tig_users'\G
- # SHOW CREATE TABLE `tigasedb`.`tig_users`\G
- # EXPLAIN /*!50100 PARTITIONS*/
- SELECT user_id FROM tig_users WHERE user_id IN ('+3918825@xmpp.xgate.com.hk', '+3918826@xmpp.xgate.com.hk', '+3918827@xmpp.xgate.com.hk', '+3918828@xmpp.xgate.com.hk', '+3918829@xmpp.xgate.com.hk', '+3918830@xmpp.xgate.com.hk', '+3918831@xmpp.xgate.com.hk', '+3918832@xmpp.xgate.com.hk', '+3918833@xmpp.xgate.com.hk', '+3918834@xmpp.xgate.com.hk', '+3918835@xmpp.xgate.com.hk', '+3918836@xmpp.xgate.com.hk', '+3918837@xmpp.xgate.com.hk', '+3918838@xmpp.xgate.com.hk', '+3918839@xmpp.xgate.com.hk', '+3918840@xmpp.xgate.com.hk', '+3918841@xmpp.xgate.com.hk', '+3918842@xmpp.xgate.com.hk', '+3918843@xmpp.xgate.com.hk', '+3918844@xmpp.xgate.com.hk'/*... omitted 30 items ...*/)\G
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement