淘宝的一些性能监控工具试用

针对前几天开数据大会当中,有相关图片的监控数据个人感觉比较好,在虚拟机上进行尝试测试,原来此脚本很早网上就有提出,现在记下,以备以后有机会使用;

http://code.taobao.org/svn//orzdba/trunk/orzdba

以下是在进行系统监控的测试;

[html]  view plain  copy
  1. [root@Slave02 shell]# perl orzdba  -mysql -innodb_rows  
  2.   
  3. .=================================================.  
  4. |       Welcome to use the orzdba tool !          |   
  5. |          Yep...Chinese English~                 |  
  6. '=============== Date : 2013-04-26 ==============='  
  7.   
  8. HOST: Slave02   IP: 180.168.41.175  
  9. DB  : book|inno|performance_schema|prod  
  10. Var : binlog_format[MIXED] max_binlog_cache_size[17179869184G] max_binlog_size[1G]   
  11.       max_connect_errors[10] max_connections[151] max_user_connections[0]   
  12.       open_files_limit[1024] sync_binlog[0] table_definition_cache[400]   
  13.       table_open_cache[64] thread_cache_size[0]   
  14.   
  15.       innodb_adaptive_flushing[ON] innodb_adaptive_hash_index[ON] innodb_buffer_pool_size[128M]   
  16.       innodb_file_per_table[ON] innodb_flush_log_at_trx_commit[1] innodb_flush_method[]   
  17.       innodb_io_capacity[200] innodb_lock_wait_timeout[50] innodb_log_buffer_size[8M]   
  18.       innodb_log_file_size[5M] innodb_log_files_in_group[2] innodb_max_dirty_pages_pct[75]   
  19.       innodb_open_files[300] innodb_read_io_threads[4] innodb_thread_concurrency[0]   
  20.       innodb_write_io_threads[4]   
  21.   
  22. --------                     -QPS- -TPS-         -Hit%- ---innodb rows status--- ------threads------ -----bytes----   
  23.   time  |  ins   upd   del    sel   iud|     lor    hit|  ins   upd   del   read| run  con  cre  cac|   recv   send|  
  24. 11:30:33|    0     0     0      0     0|       0 100.00|    0     0     0      0|   0    0    0    0|      0      0|  
  25. 11:30:34|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  26. 11:30:35|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  27. 11:30:36|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  28. 11:30:37|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  29. 11:30:38|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  30. 11:30:39|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  31. 11:30:40|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  32. 11:30:41|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  33. 11:30:42|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  34. 11:30:43|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  35. 11:30:45|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  36. 11:30:46|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  37. 11:30:47|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  38. 11:30:48|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  39. --------                     -QPS- -TPS-         -Hit%- ---innodb rows status--- ------threads------ -----bytes----   
  40.   time  |  ins   upd   del    sel   iud|     lor    hit|  ins   upd   del   read| run  con  cre  cac|   recv   send|  
  41. 11:30:49|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  42. 11:30:50|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  43. 11:30:51|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  44. 11:30:52|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  45. 11:30:53|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  46. 11:30:54|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  47. 11:30:55|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  48. 11:30:56|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  49. 11:30:57|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  50. 11:30:58|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  51. 11:30:59|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  52. 11:31:00|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  53. 11:31:01|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  54. 11:31:02|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  55. 11:31:03|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  
  56. --------                     -QPS- -TPS-         -Hit%- ---innodb rows status--- ------threads------ -----bytes----   
  57.   time  |  ins   upd   del    sel   iud|     lor    hit|  ins   upd   del   read| run  con  cre  cac|   recv   send|  
  58. 11:31:04|    0     0     0      1     0|       0 100.00|    0     0     0      0|   1    1    1    0|    738     1k|  

[html]  view plain  copy
  1. [root@Slave02 shell]# perl orzdba  -innodb  
  2.   
  3. .=================================================.  
  4. |       Welcome to use the orzdba tool !          |   
  5. |          Yep...Chinese English~                 |  
  6. '=============== Date : 2013-04-26 ==============='  
  7.   
  8. HOST: Slave02   IP: 180.168.41.175  
  9. DB  : book|inno|performance_schema|prod  
  10. Var : binlog_format[MIXED] max_binlog_cache_size[17179869184G] max_binlog_size[1G]   
  11.       max_connect_errors[10] max_connections[151] max_user_connections[0]   
  12.       open_files_limit[1024] sync_binlog[0] table_definition_cache[400]   
  13.       table_open_cache[64] thread_cache_size[0]   
  14.   
  15.       innodb_adaptive_flushing[ON] innodb_adaptive_hash_index[ON] innodb_buffer_pool_size[128M]   
  16.       innodb_file_per_table[ON] innodb_flush_log_at_trx_commit[1] innodb_flush_method[]   
  17.       innodb_io_capacity[200] innodb_lock_wait_timeout[50] innodb_log_buffer_size[8M]   
  18.       innodb_log_file_size[5M] innodb_log_files_in_group[2] innodb_max_dirty_pages_pct[75]   
  19.       innodb_open_files[300] innodb_read_io_threads[4] innodb_thread_concurrency[0]   
  20.       innodb_write_io_threads[4]   
  21.   
  22. -------- ---innodb bp pages status-- -----innodb data status---- --innodb log--   his --log(byte)--  read ---query---   
  23.   time  |   data   free  dirty flush| reads writes  read written|fsyncs written| list uflush  uckpt  view inside  que|  
  24. 11:36:07|      0      0      0     0|     0      0      0      0|     0       0|    0      0      0     0     0     0|  
  25. 11:36:08|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  26. 11:36:09|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  27. 11:36:10|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  28. 11:36:11|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  29. 11:36:12|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  30. 11:36:13|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  31. 11:36:14|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  32. 11:36:15|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  33. 11:36:16|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  34. 11:36:17|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  35. 11:36:18|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  36. 11:36:19|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  37. 11:36:20|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  38. 11:36:21|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  39. -------- ---innodb bp pages status-- -----innodb data status---- --innodb log--   his --log(byte)--  read ---query---   
  40.   time  |   data   free  dirty flush| reads writes  read written|fsyncs written| list uflush  uckpt  view inside  que|  
  41. 11:36:22|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  42. 11:36:23|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  43. 11:36:24|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  44. 11:36:25|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  45. 11:36:26|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  46. 11:36:27|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  47. 11:36:28|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  48. 11:36:29|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  49. 11:36:30|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  
  50. 11:36:31|    214   7977      0     0|     0      0      0      0|     0       0|   43      0       0    1     0     0|  


以下是针对相关的mysql性能指标进行监控测试;

[html]  view plain  copy
  1. [root@Slave02 shell]# mysql -uroot -proot -e "show engine innodb status\G" | gre  
  2. p -E -A4 -B1 --color 'TRANSACTIONS|LOG|ROW OPERATIONS'  
  3. ------------  
  4. TRANSACTIONS  
  5. ------------  
  6. Trx id counter 2100  
  7. Purge done for trx's n:o < 1304 undo n:o < 0  
  8. History list length 43  
  9. LIST OF TRANSACTIONS FOR EACH SESSION:  
  10. ---TRANSACTION 0, not started  
  11. MySQL thread id 1, query id 2 localhost root  
  12. show engine innodb status  
  13. --------  
  14. --  
  15. ---  
  16. LOG  
  17. ---  
  18. Log sequence number 893334359  
  19. Log flushed up to   893334359  
  20. Last checkpoint at  893334359  
  21. --  
  22. --------------  
  23. ROW OPERATIONS  
  24. --------------  
  25. 0 queries inside InnoDB, 0 queries in queue  
  26. 1 read views open inside InnoDB  
  27. Main thread process no. 3313, id 2768165776, state: waiting for server activity  
  28. [root@Slave02 shell]#   
  29. [root@Slave02 shell]# mysql -uroot -proot -e "show engine innodb status\G" | grep -E -A4 -B1 --color 'TRANSACTIONS|LOG|ROW OPERATIONS'  
  30. ------------  
  31. TRANSACTIONS  
  32. ------------  
  33. Trx id counter 2100  
  34. Purge done for trx's n:o < 1304 undo n:o < 0  
  35. History list length 43  
  36. LIST OF TRANSACTIONS FOR EACH SESSION:  
  37. ---TRANSACTION 0, not started  
  38. MySQL thread id 2, query id 5 localhost root  
  39. show engine innodb status  
  40. --------  
  41. --  
  42. ---  
  43. LOG  
  44. ---  
  45. Log sequence number 893334359  
  46. Log flushed up to   893334359  
  47. Last checkpoint at  893334359  
  48. --  
  49. --------------  
  50. ROW OPERATIONS  
  51. --------------  
  52. 0 queries inside InnoDB, 0 queries in queue  
  53. 1 read views open inside InnoDB  
  54. Main thread process no. 3313, id 2768165776, state: waiting for server activity  
  55. [root@Slave02 shell]#   

以下来查看监控mysql的响应时间;

这里需要安装一个相关的perl包;

[root@Slave02 shell]# perl orzdba  -lazy -rt


.=================================================.
|       Welcome to use the orzdba tool !          | 
|          Yep...Chinese English~                 |
'=============== Date : 2013-04-26 ==============='


HOST: Slave02   IP: 180.168.41.175
DB  : book|inno|performance_schema|prod
Var : binlog_format[MIXED] max_binlog_cache_size[17179869184G] max_binlog_size[1G] 
      max_connect_errors[10] max_connections[151] max_user_connections[0] 
      open_files_limit[1024] sync_binlog[0] table_definition_cache[400] 
      table_open_cache[64] thread_cache_size[0] 


      innodb_adaptive_flushing[ON] innodb_adaptive_hash_index[ON] innodb_buffer_pool_size[128M] 
      innodb_file_per_table[ON] innodb_flush_log_at_trx_commit[1] innodb_flush_method[] 
      innodb_io_capacity[200] innodb_lock_wait_timeout[50] innodb_log_buffer_size[8M] 
      innodb_log_file_size[5M] innodb_log_files_in_group[2] innodb_max_dirty_pages_pct[75] 
      innodb_open_files[300] innodb_read_io_threads[4] innodb_thread_concurrency[0] 
      innodb_write_io_threads[4] 


-------- -----load-avg---- ---cpu-usage--- ---swap---                     -QPS- -TPS-         -Hit%- --------tcprstat(us)-------- 
  time  |  1m    5m   15m |usr sys idl iow|   si   so|  ins   upd   del    sel   iud|     lor    hit|  count    avg 95-avg 99-avg|
11:37:36| 0.00  0.00  0.00|  0   0  99   1|    0    0|    0     0     0      0     0|       0 100.00|


[ERROR] need File::Lockfile !

如上缺少相关的File::Lockfile包,需要手工编译即可;

以下为编译过程过程;

[html]  view plain  copy
  1. [root@Slave02 ~]# perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config  
  2. Can't open perl script "Makefile.PL": No such file or directory  
  3. [root@Slave02 ~]#  perl -MCPAN -e shell    
  4.   
  5. cpan shell -- CPAN exploration and modules installation (v1.9800)  
  6. Enter 'h' for help.  
  7.   
  8. cpan[1]> install File::Lockfile                                                   
  9. Reading '/root/.cpan/Metadata'  
  10.   Database was generated on Sun, 07 Apr 2013 20:41:02 GMT  
  11. Fetching with LWP:  
  12. http://mirrors.sohu.com/CPAN/authors/01mailrc.txt.gz  
  13. Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'  
  14. ............................................................................DONE  
  15. Fetching with LWP:  
  16. http://mirrors.sohu.com/CPAN/modules/02packages.details.txt.gz  
  17. Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'  
  18.   Database was generated on Thu, 25 Apr 2013 19:53:02 GMT  
  19. ..............  
  20.   New CPAN.pm version (v2.00) available.  
  21.   [Currently running version is v1.9800]  
  22.   You might want to try  
  23.     install CPAN  
  24.     reload cpan  
  25.   to both upgrade CPAN.pm and run the new version without leaving  
  26.   the current session.  
  27.   
  28.   
  29. ..............................................................DONE  
  30. Fetching with LWP:  
  31. http://mirrors.sohu.com/CPAN/modules/03modlist.data.gz  
  32. Reading '/root/.cpan/sources/modules/03modlist.data.gz'  
  33. ............................................................................DONE  
  34. Writing /root/.cpan/Metadata  
  35. Running install for module 'File::Lockfile'  
  36. Running make for G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  37. cpan[1]> install File::LockfileFetching with LWP:  
  38. http://mirrors.sohu.com/CPAN/authors/id/G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  39. Fetching with LWP:  
  40. http://mirrors.sohu.com/CPAN/authors/id/G/GL/GLORYBOX/CHECKSUMS  
  41. Checksum for /root/.cpan/sources/authors/id/G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz ok  
  42. Scanning cache /root/.cpan/build for sizes  
  43. ...............................................................-------------DONE  
  44. DEL(1/3): /root/.cpan/build/DBD-mysql-4.022   
  45. DEL(2/3): /root/.cpan/build/DBD-mysql-4.022-TKS17z   
  46. DEL(3/3): /root/.cpan/build/DBD-mysql-4.022-TKS17z.yml   
  47. /bin/tar: Read 3584 bytes from -  
  48.   
  49.   CPAN.pm: Building G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  50.   
  51. Checking prerequisites...  
  52.   requires:  
  53.     !  Class::Data::Inheritable is not installed  
  54.   
  55. ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions  
  56. of the modules indicated above before proceeding with this installation  
  57.   
  58. Created MYMETA.yml and MYMETA.json  
  59. Creating new 'Build' script for 'File-Lockfile' version 'v1.0.5'  
  60. ---- Unsatisfied dependencies detected during ----  
  61. ----   GLORYBOX/File-Lockfile-v1.0.5.tar.gz   ----  
  62.     Class::Data::Inheritable [requires]  
  63. Shall I follow them and prepend them to the queue  
  64. of modules we are processing right now? [yes] yes  
  65. Running Build test  
  66.   Delayed until after prerequisites  
  67. Running Build install  
  68.   Delayed until after prerequisites  
  69. Running install for module 'Class::Data::Inheritable'  
  70. Running make for T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz  
  71. Fetching with LWP:  
  72. http://mirrors.sohu.com/CPAN/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz  
  73. Fetching with LWP:  
  74. http://mirrors.sohu.com/CPAN/authors/id/T/TM/TMTM/CHECKSUMS  
  75. Checksum for /root/.cpan/sources/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz ok  
  76.   
  77.   CPAN.pm: Building T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz  
  78.   
  79. Checking if your kit is complete...  
  80. Looks good  
  81. Writing Makefile for Class::Data::Inheritable  
  82. Writing MYMETA.yml and MYMETA.json  
  83. cp lib/Class/Data/Inheritable.pm blib/lib/Class/Data/Inheritable.pm  
  84. Manifying blib/man3/Class::Data::Inheritable.3pm  
  85.   TMTM/Class-Data-Inheritable-0.08.tar.gz  
  86.   /usr/bin/make -- OK  
  87. Running make test  
  88. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t  
  89. t/Inheritable.t ... ok       
  90. t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.00 required for testing POD coverage  
  91. t/pod.t ........... skipped: Test::Pod 1.00 required for testing POD  
  92. All tests successful.  
  93. Files=3Tests=15,  0 wallclock secs ( 0.04 usr  0.02 sys +  0.06 cusr  0.01 csys =  0.13 CPU)  
  94. Result: PASS  
  95.   TMTM/Class-Data-Inheritable-0.08.tar.gz  
  96.   /usr/bin/make test -- OK  
  97. Running make install  
  98. Installing /usr/lib/perl5/site_perl/5.8.8/Class/Data/Inheritable.pm  
  99. Installing /usr/share/man/man3/Class::Data::Inheritable.3pm  
  100. Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod  
  101.   TMTM/Class-Data-Inheritable-0.08.tar.gz  
  102.   /usr/bin/make install  -- OK  
  103. Running Build for G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  104.   Has already been unwrapped into directory /root/.cpan/build/File-Lockfile-v1.0.5-OKUNdH  
  105.   
  106.   CPAN.pm: Building G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  107.   
  108. Building File-Lockfile  
  109.   GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  110.   ./Build -- OK  
  111. Running Build test  
  112. Use of uninitialized value in length at /usr/lib/perl5/site_perl/5.8.8/Module/Build/Base.pm line 2767.  
  113. t/01_basic.t .. ok     
  114. All tests successful.  
  115. Files=1Tests=5,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.03 cusr  0.03 csys =  0.08 CPU)  
  116. Result: PASS  
  117.   GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  118.   ./Build test -- OK  
  119. Running Build install  
  120. Building File-Lockfile  
  121. Installing /usr/lib/perl5/site_perl/5.8.8/File/Lockfile.pm  
  122. Installing /usr/lib/perl5/site_perl/5.8.8/File/Lockfile.pod  
  123. Installing /usr/share/man/man3/File::Lockfile.3pm  
  124.   GLORYBOX/File-Lockfile-v1.0.5.tar.gz  
  125.   ./Build install  -- OK  
  126.   
  127. cpan[2]>    
然后在进行查看mysql响应时间;

[html]  view plain  copy
  1. [root@Slave02 shell]# perl orzdba  -lazy -rt  
  2.   
  3. .=================================================.  
  4. |       Welcome to use the orzdba tool !          |   
  5. |          Yep...Chinese English~                 |  
  6. '=============== Date : 2013-04-26 ==============='  
  7.   
  8. HOST: Slave02   IP: 180.168.41.175  
  9. DB  : book|inno|performance_schema|prod  
  10. Var : binlog_format[MIXED] max_binlog_cache_size[17179869184G] max_binlog_size[1G]   
  11.       max_connect_errors[10] max_connections[151] max_user_connections[0]   
  12.       open_files_limit[1024] sync_binlog[0] table_definition_cache[400]   
  13.       table_open_cache[64] thread_cache_size[0]   
  14.   
  15.       innodb_adaptive_flushing[ON] innodb_adaptive_hash_index[ON] innodb_buffer_pool_size[128M]   
  16.       innodb_file_per_table[ON] innodb_flush_log_at_trx_commit[1] innodb_flush_method[]   
  17.       innodb_io_capacity[200] innodb_lock_wait_timeout[50] innodb_log_buffer_size[8M]   
  18.       innodb_log_file_size[5M] innodb_log_files_in_group[2] innodb_max_dirty_pages_pct[75]   
  19.       innodb_open_files[300] innodb_read_io_threads[4] innodb_thread_concurrency[0]   
  20.       innodb_write_io_threads[4]   
  21.   
  22. -------- -----load-avg---- ---cpu-usage--- ---swap---                     -QPS- -TPS-         -Hit%- --------tcprstat(us)--------   
  23.   time  |  1m    5m   15m |usr sys idl iow|   si   so|  ins   upd   del    sel   iud|     lor    hit|  count    avg 95-avg 99-avg|  
  24. 11:40:40| 0.61  0.18  0.06|  1   0  98   1|    0    0|    0     0     0      0     0|       0 100.00|sh: /usr/bin/tcprstat: No such file or directory  
  25.       0      0      0      0|  
  26. 11:40:41| 0.61  0.18  0.06|  1   2  95   2|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  27. 11:40:42| 0.61  0.18  0.06|  1   1  98   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  28. 11:40:43| 0.61  0.18  0.06|  1   1  98   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  29. 11:40:44| 0.61  0.18  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  30. 11:40:45| 0.56  0.17  0.06|  1   2  96   1|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  31. 11:40:46| 0.56  0.17  0.06|  1   1  98   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  32. 11:40:47| 0.56  0.17  0.06|  2   2  96   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  33. 11:40:48| 0.56  0.17  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  34. 11:40:49| 0.56  0.17  0.06|  1   1  98   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  35. 11:40:50| 0.51  0.17  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  36. 11:40:51| 0.51  0.17  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  37. 11:40:52| 0.51  0.17  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  38. 11:40:53| 0.51  0.17  0.06|  1   1  98   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  39. 11:40:54| 0.51  0.17  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  40. -------- -----load-avg---- ---cpu-usage--- ---swap---                     -QPS- -TPS-         -Hit%- --------tcprstat(us)--------   
  41.   time  |  1m    5m   15m |usr sys idl iow|   si   so|  ins   upd   del    sel   iud|     lor    hit|  count    avg 95-avg 99-avg|  
  42. 11:40:55| 0.47  0.17  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  43. 11:40:56| 0.47  0.17  0.06|  1   2  97   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  
  44. 11:40:57| 0.47  0.17  0.06|  2   2  96   0|    0    0|    0     0     0      1     0|       0 100.00|      0      0      0      0|  




  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值