• 14-01-2013, 03:10:01
    #1
    SLOW QUERIES
    The slow query log is NOT enabled.
    Current long_query_time = 10.000000 sec.
    You have 0 out of 2258 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 NOT enabled.
    You will not be able to do point in time recovery
    See http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html
    
    WORKER THREADS
    Current thread_cache_size = 8
    Current threads_cached = 3
    Current threads_per_sec = 0
    Historic threads_per_sec = 0
    Your thread_cache_size is fine
    
    MAX CONNECTIONS
    Current max_connections = 1000
    Current threads_connected = 3
    Historic max_used_connections = 6
    The number of used connections is 0% of the configured maximum.
    You are using less than 10% of your configured max_connections.
    Lowering max_connections could help to avoid an over-allocation of memory
    See "MEMORY USAGE" section to make sure you are not over-allocating
    
    No InnoDB Support Enabled!
    
    MEMORY USAGE
    Max Memory Ever Allocated : 4.76 G
    Configured Max Per-thread Buffers : 625.48 G
    Configured Max Global Buffers : 1.01 G
    Configured Max Memory Limit : 626.50 G
    Physical Memory : 7.92 G
    
    Max memory limit exceeds 90% of physical memory
    
    KEY BUFFER
    Current MyISAM index space = 35 M
    Current key_buffer_size = 16 M
    Key cache miss rate is 1 : 221
    Key buffer free ratio = 73 %
    Your key_buffer_size seems to be fine
    
    QUERY CACHE
    Query cache is enabled
    Current query_cache_size = 1.00 G
    Current query_cache_used = 8 K
    Current query_cache_limit = 1 M
    Current Query cache Memory fill ratio = 0 %
    Current query_cache_min_res_unit = 4 K
    Your query_cache_size seems to be too high.
    Perhaps you can use these resources elsewhere
    MySQL won't cache query results that are larger than query_cache_limit in size
    
    SORT OPERATIONS
    Current sort_buffer_size = 512 M
    Current read_rnd_buffer_size = 256 K
    Sort buffer seems to be fine
    
    JOINS
    Current join_buffer_size = 132.00 K
    You have had 3 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.
    
    OPEN FILES LIMIT
    Current open_files_limit = 5000 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 = 64 tables
    Current table_definition_cache = 256 tables
    You have a total of 867 tables
    You have 64 open tables.
    Current table_cache hit rate is 6%
    , while 100% of your table cache is in use
    You should probably increase your table_cache
    You should probably increase your table_definition_cache value.
    
    TEMP TABLES
    Current max_heap_table_size = 16 M
    Current tmp_table_size = 1.00 G
    Of 387 temp tables, 25% were created on disk
    Effective in-memory tmp_table_size is limited to max_heap_table_size.
    Perhaps you should increase your tmp_table_size and/or max_heap_table_size
    to reduce the number of disk-based temporary tables
    Note! BLOB and TEXT columns are not allow in memory tables.
    If you are using these columns raising these values might not impact your
    ratio of on disk temp tables.
    
    TABLE SCANS
    Current read_buffer_size = 128 M
    Current table scan ratio = 364 : 1
    read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
    
    TABLE LOCKING
    Current Lock Wait ratio = 1 : 2487
    You may benefit from selective use of InnoDB.
    If you have long running SELECT's against MyISAM tables and perform
    frequent updates consider setting 'low_priority_updates=1'
    If you have a high concurrency of inserts on Dynamic row-length tables
    consider setting 'concurrent_insert=2'.
    
    root@server [~]# You are using less than 10% of your configured max_connections.
    -bash: You: command not found
    root@server [~]# Lowering max_connections could help to avoid an over-allocation of memory
    -bash: Lowering: command not found
    root@server [~]# See "MEMORY USAGE" section to make sure you are not over-allocating
    -bash: See: command not found
    root@server [~]# service mysql restart
    Shutting down MySQL..                                      [  OK  ]
    Starting MySQL.............................................[  OK  ].......
    root@server [~]# service mysql restart
    Shutting down MySQL..                                      [  OK  ]
    Starting MySQL.............................................[  OK  ].......
    root@server [~]# ./tuning-primer.sh
    
            -- MYSQL PERFORMANCE TUNING PRIMER --
                 - By: Matthew Montgomery -
    
    MySQL Version 5.1.66-cll i686
    
    Uptime = 0 days 0 hrs 1 min 24 sec
    Avg. qps = 6
    Total Questions = 558
    Threads Connected = 1
    
    Warning: Server has not been running for at least 48hrs.
    It may not be safe to use 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 0 out of 579 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 NOT enabled.
    You will not be able to do point in time recovery
    See http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html
    
    WORKER THREADS
    Current thread_cache_size = 128
    Current threads_cached = 3
    Current threads_per_sec = 0
    Historic threads_per_sec = 0
    Your thread_cache_size is fine
    
    MAX CONNECTIONS
    Current max_connections = 1000
    Current threads_connected = 1
    Historic max_used_connections = 4
    The number of used connections is 0% of the configured maximum.
    You are using less than 10% of your configured max_connections.
    Lowering max_connections could help to avoid an over-allocation of memory
    See "MEMORY USAGE" section to make sure you are not over-allocating
    
    No InnoDB Support Enabled!
    
    MEMORY USAGE
    Max Memory Ever Allocated : 3.75 G
    Configured Max Per-thread Buffers : 625.48 G
    Configured Max Global Buffers : 1.25 G
    Configured Max Memory Limit : 626.73 G
    Physical Memory : 7.92 G
    
    Max memory limit exceeds 90% of physical memory
    
    KEY BUFFER
    Current MyISAM index space = 35 M
    Current key_buffer_size = 256 M
    Key cache miss rate is 1 : 151
    Key buffer free ratio = 88 %
    Your key_buffer_size seems to be fine
    
    QUERY CACHE
    Query cache is enabled
    Current query_cache_size = 1.00 G
    Current query_cache_used = 8 K
    Current query_cache_limit = 1 M
    Current Query cache Memory fill ratio = 0 %
    Current query_cache_min_res_unit = 4 K
    Your query_cache_size seems to be too high.
    Perhaps you can use these resources elsewhere
    MySQL won't cache query results that are larger than query_cache_limit in size
    
    SORT OPERATIONS
    Current sort_buffer_size = 512 M
    Current read_rnd_buffer_size = 256 K
    Sort buffer seems to be fine
    
    JOINS
    Current join_buffer_size = 132.00 K
    You have had 0 queries where a join could not use an index properly
    Your joins seem to be using indexes properly
    
    OPEN FILES LIMIT
    Current open_files_limit = 5010 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 = 2000 tables
    Current table_definition_cache = 256 tables
    You have a total of 867 tables
    You have 867 open tables.
    The table_cache value seems to be fine
    You should probably increase your table_definition_cache value.
    
    TEMP TABLES
    Current max_heap_table_size = 16 M
    Current tmp_table_size = 1.00 G
    Of 203 temp tables, 16% were created on disk
    Effective in-memory tmp_table_size is limited to max_heap_table_size.
    Created disk tmp tables ratio seems fine
    
    TABLE SCANS
    Current read_buffer_size = 128 M
    Current table scan ratio = 608 : 1
    read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
    
    TABLE LOCKING
    Current Lock Wait ratio = 0 : 765
    Your table locking seems to be fine

    Bu tabloda duzenlemem gereken yerler hakkında yardımcı olabilecek arkadaşlar varmıdır.
  • 14-01-2013, 04:13:13
    #2
    biraz bilgi verirmisin kaç websitesi çalışıyo?

    bu test çalıştırmadan önce mysql ne kadar süre açıktı 24 saat açık kalması lazım bunun mantıklı sonuçlar vermesi için
  • 14-01-2013, 22:41:05
    #3
    -- MYSQL PERFORMANCE TUNING PRIMER --
    - By: Matthew Montgomery -

    MySQL Version 5.1.66-cll i686

    Uptime = 0 days 18 hrs 3 min 5 sec
    Avg. qps = 62
    Total Questions = 4066900
    Threads Connected = 6

    Warning: Server has not been running for at least 48hrs.
    It may not be safe to use 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/...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 0 out of 4066935 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 NOT enabled.
    You will not be able to do point in time recovery
    See http://dev.mysql.com/doc/refman/5.1/...-recovery.html

    WORKER THREADS
    Current thread_cache_size = 128
    Current threads_cached = 40
    Current threads_per_sec = 0
    Historic threads_per_sec = 0
    Your thread_cache_size is fine

    MAX CONNECTIONS
    Current max_connections = 1000
    Current threads_connected = 6
    Historic max_used_connections = 45
    The number of used connections is 4% of the configured maximum.
    You are using less than 10% of your configured max_connections.
    Lowering max_connections could help to avoid an over-allocation of memory
    See "MEMORY USAGE" section to make sure you are not over-allocating

    No InnoDB Support Enabled!

    MEMORY USAGE
    Max Memory Ever Allocated : 29.39 G
    Configured Max Per-thread Buffers : 625.48 G
    Configured Max Global Buffers : 1.25 G
    Configured Max Memory Limit : 626.73 G
    Physical Memory : 7.92 G

    Max memory limit exceeds 90% of physical memory

    KEY BUFFER
    Current MyISAM index space = 37 M
    Current key_buffer_size = 256 M
    Key cache miss rate is 1 : 51254
    Key buffer free ratio = 83 %
    Your key_buffer_size seems to be too high.
    Perhaps you can use these resources elsewhere

    QUERY CACHE
    Query cache is enabled
    Current query_cache_size = 1.00 G
    Current query_cache_used = 8 K
    Current query_cache_limit = 1 M
    Current Query cache Memory fill ratio = 0 %
    Current query_cache_min_res_unit = 4 K
    Your query_cache_size seems to be too high.
    Perhaps you can use these resources elsewhere
    MySQL won't cache query results that are larger than query_cache_limit in size

    SORT OPERATIONS
    Current sort_buffer_size = 512 M
    Current read_rnd_buffer_size = 256 K
    Sort buffer seems to be fine

    JOINS
    Current join_buffer_size = 132.00 K
    You have had 3250 queries where a join could not use an index properly
    You have had 1576 joins without keys that check for key usage after each row
    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.

    OPEN FILES LIMIT
    Current open_files_limit = 5010 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 = 2000 tables
    Current table_definition_cache = 256 tables
    You have a total of 867 tables
    You have 988 open tables.
    The table_cache value seems to be fine
    You should probably increase your table_definition_cache value.

    TEMP TABLES
    Current max_heap_table_size = 16 M
    Current tmp_table_size = 1.00 G
    Of 451445 temp tables, 32% were created on disk
    Effective in-memory tmp_table_size is limited to max_heap_table_size.
    Perhaps you should increase your tmp_table_size and/or max_heap_table_size
    to reduce the number of disk-based temporary tables
    Note! BLOB and TEXT columns are not allow in memory tables.
    If you are using these columns raising these values might not impact your
    ratio of on disk temp tables.

    TABLE SCANS
    Current read_buffer_size = 128 M
    Current table scan ratio = 352 : 1
    read_buffer_size is over 8 MB there is probably no need for such a large read_buffer

    TABLE LOCKING
    Current Lock Wait ratio = 1 : 1562
    You may benefit from selective use of InnoDB.
    If you have a high concurrency of inserts on Dynamic row-length tables
    consider setting 'concurrent_insert=2'.

    Sunucu özellikleri : DELL Power Edge R210-2

    10 kadar site var
    1 - 2 tanesi 10k kadar hite sahip
    cpu kullanımı cok yüksek
  • 15-01-2013, 01:00:10
    #4
    max_connections = 100
    query_cache_size = 256m
    table_definition_cache = 2000
    max_heap_table_size = 256m
    tmp_table_size = 256m

    bu şekilde denermisin
  • 11-04-2013, 19:15:19
    #5
    SLOW QUERIES
    The slow query log is enabled.
    Current long_query_time = 5.000000 sec.
    You have 5 out of 40245871 that take longer than 5.000000 sec. to complete
    Your long_query_time seems to be fine

    BINARY UPDATE LOG
    The binary update log is NOT enabled.
    You will not be able to do point in time recovery
    See http://dev.mysql.com/doc/refman/5.1/...-recovery.html

    WORKER THREADS
    Current thread_cache_size = 256
    Current threads_cached = 9
    Current threads_per_sec = 0
    Historic threads_per_sec = 0
    Your thread_cache_size is fine

    MAX CONNECTIONS
    Current max_connections = 5000
    Current threads_connected = 11
    Historic max_used_connections = 19
    The number of used connections is 0% of the configured maximum.
    You are using less than 10% of your configured max_connections.
    Lowering max_connections could help to avoid an over-allocation of memory
    See "MEMORY USAGE" section to make sure you are not over-allocating

    No InnoDB Support Enabled!

    MEMORY USAGE
    Max Memory Ever Allocated : 1.65 G
    Configured Max Per-thread Buffers : 239.25 G
    Configured Max Global Buffers : 768 M
    Configured Max Memory Limit : 240.00 G
    Physical Memory : 7.68 G

    Max memory limit exceeds 90% of physical memory

    KEY BUFFER
    Current MyISAM index space = 57 M
    Current key_buffer_size = 512 M
    Key cache miss rate is 1 : 21370
    Key buffer free ratio = 76 %
    Your key_buffer_size seems to be too high.
    Perhaps you can use these resources elsewhere

    QUERY CACHE
    Query cache is enabled
    Current query_cache_size = 256 M
    Current query_cache_used = 109 M
    Current query_cache_limit = 512 M
    Current Query cache Memory fill ratio = 42.73 %
    Current query_cache_min_res_unit = 4 K
    Query Cache is 26 % fragmented
    Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
    If you have many small queries lower 'query_cache_min_res_unit' to reduce fragmentation.
    MySQL won't cache query results that are larger than query_cache_limit in size

    SORT OPERATIONS
    Current sort_buffer_size = 8 M
    Current read_rnd_buffer_size = 768 K
    Sort buffer seems to be fine

    JOINS
    Current join_buffer_size = 32.00 M
    You have had 2686 queries where a join could not use an index properly
    You have had 1880 joins without keys that check for key usage after each row
    join_buffer_size >= 4 M
    This is not advised
    You should enable "log-queries-not-using-indexes"
    Then look for non indexed joins in the slow query log.

    OPEN FILES LIMIT
    Current open_files_limit = 25000 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 = 8000 tables
    Current table_definition_cache = 524288 tables
    You have a total of 898 tables
    You have 1137 open tables.
    The table_cache value seems to be fine

    TEMP TABLES
    Current max_heap_table_size = 512 M
    Current tmp_table_size = 256 M
    Of 262779 temp tables, 38% were created on disk
    Perhaps you should increase your tmp_table_size and/or max_heap_table_size
    to reduce the number of disk-based temporary tables
    Note! BLOB and TEXT columns are not allow in memory tables.
    If you are using these columns raising these values might not impact your
    ratio of on disk temp tables.

    TABLE SCANS
    Current read_buffer_size = 8 M
    Current table scan ratio = 64 : 1
    read_buffer_size seems to be fine

    TABLE LOCKING
    Current Lock Wait ratio = 1 : 74
    You may benefit from selective use of InnoDB.


    bu ayarlardan anlayan arkadaslar yardımcı olabilirmi ?