MySQL Performance Tuning Primer Script

불당   
   조회 6596  

 
[root@kcolo122-178 ~]# !1025
./tuning-primer.sh
        -- MYSQL PERFORMANCE TUNING PRIMER --
             - By: Matthew Montgomery -
MySQL Version 5.5.27-log x86_64
Uptime = 33 days 17 hrs 48 min 28 sec
Avg. qps = 371
Total Questions = 1083650667
Threads Connected = 1
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.5/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 enabled.
Current long_query_time = 60.000000 sec.
You have 37 out of 1083650688 that take longer than 60.000000 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is enabled
Binlog sync is not enabled, you could loose binlog records during a server crash
WORKER THREADS
Current thread_cache_size = 512
Current threads_cached = 214
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 214
Current threads_connected = 1
Historic max_used_connections = 215
The number of used connections is 100% of the configured maximum.
You should raise max_connections
INNODB STATUS
Current InnoDB index space = 10.34 G
Current InnoDB data space = 40.67 G
Current InnoDB buffer pool free = 0 %
Current innodb_buffer_pool_size = 28.21 G
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory
MEMORY USAGE
Max Memory Ever Allocated : 118.43 G
Configured Max Per-thread Buffers : 88.66 G
Configured Max Global Buffers : 29.35 G
Configured Max Memory Limit : 118.02 G
Physical Memory : 47.07 G
Max memory limit exceeds 90% of physical memory
KEY BUFFER
Current MyISAM index space = 1.02 G
Current key_buffer_size = 384 M
Key cache miss rate is 1 : 4080
Key buffer free ratio = 81 %
Your key_buffer_size seems to be fine
QUERY CACHE
Query cache is enabled
Current query_cache_size = 256 M
Current query_cache_used = 120 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 47.00 %
Current query_cache_min_res_unit = 4 K
Query Cache is 28 % 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 = 64 M
Current read_rnd_buffer_size = 256 M
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 32.00 M
You have had 6619 queries where a join could not use an index properly
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 = 1024 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 = 400 tables
Current table_definition_cache = 400 tables
You have a total of 604 tables
You have 400 open tables.
Current table_cache hit rate is 0%
, 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 = 256 M
Current tmp_table_size = 64 M
Of 22623822 temp tables, 0% were created on disk
Created disk tmp tables ratio seems fine
TABLE SCANS
Current read_buffer_size = 64 M
Current table scan ratio = 1904 : 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 : 16980
Your table locking seems to be fine
- opencode.co.kr -


제목Page 3/9
     
2011-12   203961   불당
2015-09   83020   불당
2015-11   65901   불당
2015-05   101630   불당
2016-06   39721   불당
2013-02   15342   불당
2013-02   8465   불당
2013-02   10639   불당
2013-02   7070   불당
2013-02   7615   불당
2013-01   7751   불당
2013-01   6837   불당
2013-01   8259   불당
2013-01   5983   불당
2013-01   7415   불당
2012-12   7607   불당
2012-12   8408   불당
2012-11   7449   불당
2012-11   6612   불당
2012-11   6597   불당
2012-11   9179   불당
2012-11   8601   불당
2012-10   10753   불당
2012-10   11368   불당
2012-10   7686   불당