亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

mysql性能優(yōu)化工具--tuner-primer使用介紹

 更新時間:2016年05月29日 23:31:58   投稿:mdxy-dxy  
這篇文章主要介紹了mysql性能優(yōu)化工具--tuner-primer的使用方法與返回數(shù)據(jù)分析,需要的朋友可以參考下

下載并改變執(zhí)行權(quán)限:
wget http://www.day32.com/MySQL/tuning-primer.sh
chmod +x tuning-primer.sh
./tuning-primer.sh

結(jié)果報告:
會用幾種顏色標(biāo)記:
藍(lán)色:總指標(biāo)
綠色:表示此參數(shù)還可以
紅色:表示此參數(shù)有嚴(yán)重問題
深紅色:表示有問題參數(shù)
黃色:一些信息提示
而且還有警告:
Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.


下面是一個報告的結(jié)果

xx@xxxxxx:~$ . ./tuning-primer.sh
mysqld is alive

-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -

MySQL Version 5.1.32-enterprise-gpl-log x86_64

Uptime = 4 days 0 hrs 48 min 3 sec
Avg. qps = 255
Total Questions = 88956118
Threads Connected = 4

Server has been running for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service


SLOW QUERIES

The slow query log is NOT enabled.
Current long_query_time = 10.000000 sec.
You have 9589 out of 88956228 that take longer than 10.000000 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is enabled
The expire_logs_days is not set.
The mysqld will retain the entire binary log until RESET MASTER or PURGE MASTER LOGS commands are run manually
Setting expire_logs_days will allow you to remove old binary logs automatically
See http://dev.mysql.com/doc/refman/5.1/en/purge-master-logs.html


WORKER THREADS
Current thread_cache_size = 32
Current threads_cached = 29
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 151
Current threads_connected = 4
Historic max_used_connections = 84
The number of used connections is 55% of the configured maximum.
Your max_connections variable seems to be fine.

MEMORY USAGE
Max Memory Ever Allocated : 11.87 G
Configured Max Per-thread Buffers : 10.38 G
Configured Max Global Buffers : 6.10 G
Configured Max Memory Limit : 16.48 G
Physical Memory : 8.00 G

Max memory limit exceeds 90% of physical memory

(內(nèi)存設(shè)置嚴(yán)重有問題!--By Me)

KEY BUFFER
1714734 * 1024 / 2147483648 * 100
Current MyISAM index space = 8 K
Current key_buffer_size = 2.00 G
Key cache miss rate is 1 : 585673
Key buffer free ratio = 0 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere



(錯誤參數(shù)設(shè)置:query_cache_size > query_cache_limit --By Me)
SORT OPERATIONS
Current sort_buffer_size = 4 M
Current read_rnd_buffer_size = 64 M
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 132.00 K
You have had 1 queries where a join could not use an index properly
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

join_buffer_size設(shè)置過小,另外存在一個查詢使用了join但是沒有走索引 --By Me

OPEN FILES LIMIT
Current open_files_limit = 1185 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.

Your open_files_limit value seems to be fine

TABLE CACHE
Current table_open_cache = 512 tables
Current table_definition_cache = 256 tables
You have a total of 0 tables
You have 125 open tables.


TABLE SCANSCurrent read_buffer_size = 2 M
Current table scan ratio = 4650 : 1
You have a high ratio of sequential access requests to SELECTs
You may benefit from raising read_buffer_size and/or improving your use of indexes.



TABLE LOCKING
Current Lock Wait ratio = 1 : 5833374
Your table locking seems to be fine

相關(guān)文章

  • 用C語言操作MySQL數(shù)據(jù)庫的通用方法

    用C語言操作MySQL數(shù)據(jù)庫的通用方法

    在為MySQL提供接口方面,C語言具有更好的安全性和性能,本篇文章介紹了C語言操作MySQL數(shù)據(jù)庫的通用方法,需要了解的朋友可以參考下
    2015-07-07
  • 詳解CentOS6.5 安裝 MySQL5.1.71的方法

    詳解CentOS6.5 安裝 MySQL5.1.71的方法

    這篇文章主要介紹了CentOS6.5 安裝 MySQL5.1.71的相關(guān)資料,非常不錯,具有參考借鑒價值,需要的朋友可以參考下
    2016-12-12
  • 一千行的MySQL學(xué)習(xí)筆記匯總

    一千行的MySQL學(xué)習(xí)筆記匯總

    這篇文章主要介紹了一千行的MySQL學(xué)習(xí)筆記匯總,實(shí)例總結(jié)了MySQL學(xué)習(xí)中遇到的各類常見問題與實(shí)用技巧,需要的朋友可以參考下
    2014-10-10
  • MySQL timestamp自動更新時間分享

    MySQL timestamp自動更新時間分享

    在mysql中timestamp數(shù)據(jù)類型是一個比較特殊的數(shù)據(jù)類型,他可以自動在你不使用程序更新情況下只要你更新了記錄timestamp會自動更新時間
    2013-06-06
  • MySQL數(shù)據(jù)庫操作DQL正則表達(dá)式

    MySQL數(shù)據(jù)庫操作DQL正則表達(dá)式

    這篇文章主要介紹了MySQL數(shù)據(jù)庫操作DQL正則表達(dá)式,正則表達(dá)式描述了一種字符串匹配的規(guī)則,正則表達(dá)式本身就是一個字符串,使用這個字符串來描述、用來定義匹配規(guī)則,匹配一系列符合某個句法規(guī)則的字符串
    2022-07-07
  • mysql 5.7.21解壓版安裝配置方法圖文教程(win10)

    mysql 5.7.21解壓版安裝配置方法圖文教程(win10)

    這篇文章主要為大家詳細(xì)介紹了win10下mysql 5.7.21解壓版安裝配置方法圖文教程,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2018-02-02
  • MySql數(shù)據(jù)庫基礎(chǔ)之分組查詢詳解

    MySql數(shù)據(jù)庫基礎(chǔ)之分組查詢詳解

    這篇文章主要介紹了mysql按照時間分組查詢的語句,非常實(shí)用,sql語句簡單易懂,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2022-09-09
  • MYSQL中Truncate的用法詳解

    MYSQL中Truncate的用法詳解

    這篇文章主要介紹了MYSQL中Truncate的用法詳解,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2021-01-01
  • linux下多個mysql5.7.19(tar.gz)安裝圖文教程

    linux下多個mysql5.7.19(tar.gz)安裝圖文教程

    這篇文章主要為大家詳細(xì)介紹了linux下多個mysql5.7.19tar.gz安裝教程,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2017-07-07
  • MySQL中幾種插入和批量語句實(shí)例詳解

    MySQL中幾種插入和批量語句實(shí)例詳解

    這篇文章主要給大家介紹了關(guān)于MySQL中幾種插入和批量語句的相關(guān)資料,在mysql數(shù)據(jù)庫中,實(shí)現(xiàn)批量插入數(shù)據(jù)與批量更新數(shù)據(jù)的例子,即批量insert、update的方法,需要的朋友可以參考下
    2021-09-09

最新評論