Mysql 效能調優 一 2
Mysql 效能調優 一 2
檢視mysql效能狀態開源工具
1. dim_STAT
2. mysqlreport
3. mytop
4. mysqlresource
5. mysql
6. maatkit
7. linux系統自帶引數
--iostat
--vmstat
--sar
--top
Mysql壓力測試工具
1. mysqlslap 使用辦法
mysql> create database mysqlslap;
[root@test1 ~]# mysqlslap -uroot -p123456 --query "select count(*) from mysql.user" -i 20 -c 300
Warning: Using a password on the command line interface can be insecure.
Benchmark
Average number of seconds to run all queries: 0.287 seconds
Minimum number of seconds to run all queries: 0.061 seconds
Maximum number of seconds to run all queries: 1.701 seconds
Number of clients running queries: 300
Average number of queries per client: 1
[root@test1 ~]#
mysql> show status like '%connect%';
+-----------------------------------------------+-------+
| Variable_name | Value |
+-----------------------------------------------+-------+
| Aborted_connects | 132 |
| Connection_errors_accept | 0 |
| Connection_errors_internal | 0 |
| Connection_errors_max_connections | 0 |
| Connection_errors_peer_address | 0 |
| Connection_errors_select | 0 |
| Connection_errors_tcpwrap | 0 |
| Connections | 14579 |
| Max_used_connections | 75 |
| Performance_schema_session_connect_attrs_lost | 0 |
| Ssl_client_connects | 0 |
| Ssl_connect_renegotiates | 0 |
| Ssl_finished_connects | 0 |
| Threads_connected | 1 |
+-----------------------------------------------+-------+
14 rows in set (0.07 sec)
mysql>
最大連線數75.。。。。
mysql> select * from emp limit 2;
檢視mysql效能狀態開源工具
1. dim_STAT
2. mysqlreport
3. mytop
4. mysqlresource
5. mysql
6. maatkit
7. linux系統自帶引數
--iostat
--vmstat
--sar
--top
Mysql壓力測試工具
1. mysqlslap 使用辦法
mysql> create database mysqlslap;
[root@test1 ~]# mysqlslap -uroot -p123456 --query "select count(*) from mysql.user" -i 20 -c 300
Warning: Using a password on the command line interface can be insecure.
Benchmark
Average number of seconds to run all queries: 0.287 seconds
Minimum number of seconds to run all queries: 0.061 seconds
Maximum number of seconds to run all queries: 1.701 seconds
Number of clients running queries: 300
Average number of queries per client: 1
[root@test1 ~]#
mysql> show status like '%connect%';
+-----------------------------------------------+-------+
| Variable_name | Value |
+-----------------------------------------------+-------+
| Aborted_connects | 132 |
| Connection_errors_accept | 0 |
| Connection_errors_internal | 0 |
| Connection_errors_max_connections | 0 |
| Connection_errors_peer_address | 0 |
| Connection_errors_select | 0 |
| Connection_errors_tcpwrap | 0 |
| Connections | 14579 |
| Max_used_connections | 75 |
| Performance_schema_session_connect_attrs_lost | 0 |
| Ssl_client_connects | 0 |
| Ssl_connect_renegotiates | 0 |
| Ssl_finished_connects | 0 |
| Threads_connected | 1 |
+-----------------------------------------------+-------+
14 rows in set (0.07 sec)
mysql>
最大連線數75.。。。。
mysql> select * from emp limit 2;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1379433/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mysql 效能調優 二 2MySql
- Mysql 效能調優 一 1MySql
- Mysql 效能調優 一 3MySql
- MySQL 效能調優技巧MySql
- Mysql 效能調優 二 1MySql
- MySQL效能調優"經驗"MySql
- DB2效能調優DB2
- MySQL入門--效能調優概述MySql
- mysql 效能調優五種方式MySql
- MySQL效能診斷與調優MySql
- 全棧必備——MySQL效能調優全棧MySql
- MySQL 效能調優的10個方法MySql
- Mysql效能優化一MySql優化
- MySQL調優效能監控之show profileMySql
- MySQL調優效能監控之performance schemaMySqlORM
- mysql效能的檢查和調優方法MySql
- MySQL效能調優my.cnf詳解MySql
- Spark學習——效能調優(一)Spark
- MySql(七):MySQL效能調優——鎖定機制與鎖優化分析MySql優化
- 技術更新!10個MySQL效能調優技巧MySql
- Spark 效能調優--資源調優Spark
- Spark 效能調優--Shuffle調優 SortShuffleManagerSpark
- 【效能調優】效能測試、分析與調優基礎
- ElasticSearch效能調優Elasticsearch
- Nginx 效能調優Nginx
- iOS效能調優iOS
- php效能調優PHP
- Java效能調優Java
- Spark效能調優Spark
- oracle效能調優Oracle
- MySQL調優MySql
- 效能調優概述,這是一篇最通俗易懂的效能調優總結
- 【MySQL】效能優化之 order by (一)MySql優化
- 一些可以預見的Oracle應用程式效能調優 (2)Oracle
- 效能調優學習之硬體調優
- MySQL調優篇 | 索引知識解讀(2)MySql索引
- 效能調優實戰
- 效能調優 jstackJS