tuning-primer.sh脚本性能调优的使用
2013-01-28 17:48
603 查看
按照比较简单直接下载配置即可完成;比mysqlreport工具方便好多的!以下是相关步骤;
wget http://www.day32.com/MySQL/tuning-primer.sh
chmod +x tuning-primer.sh
./tuning-primer.sh
wget http://www.day32.com/MySQL/tuning-primer.sh
chmod +x tuning-primer.sh
./tuning-primer.sh
[root@Slave02 ~]# ./tuning-primer.sh Using login values from ~/.my.cnf - INITIAL LOGIN ATTEMPT FAILED - Testing for stored webmin passwords: None Found Could not auto detect login info! Found potential sockets: /tmp/mysql.sock Using: /tmp/mysql.sock Would you like to provide a different socket?: [y/N] N Do you have your login handy ? [y/N] : y User: root Password: root Would you like me to create a ~/.my.cnf file for you? [y/N] : N -- MYSQL PERFORMANCE TUNING PRIMER -- - By: Matthew Montgomery - MySQL Version 5.5.13-log i686 Uptime = 0 days 8 hrs 30 min 9 sec Avg. qps = 0 Total Questions = 76 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.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 NOT enabled. Current long_query_time = 10.000000 sec. You have 0 out of 97 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.5/en/purge-master-logs.html Binlog sync is not enabled, you could loose binlog records during a server crash WORKER THREADS Current thread_cache_size = 0 Current threads_cached = 0 Current threads_per_sec = 1 Historic threads_per_sec = 0 Your thread_cache_size is fine MAX CONNECTIONS Current max_connections = 151 Current threads_connected = 1 Historic max_used_connections = 1 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 INNODB STATUS Current InnoDB index space = 136 M Current InnoDB data space = 241 M Current InnoDB buffer pool free = 93 % Current innodb_buffer_pool_size = 128 M 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 : 161 M Configured Max Per-thread Buffers : 240 M Configured Max Global Buffers : 160 M Configured Max Memory Limit : 400 M Physical Memory : 503 M Max memory limit seem to be within acceptable norms KEY BUFFER No key reads?! Seriously look into using some indexes Current MyISAM index space = 130 K Current key_buffer_size = 16 M Key cache miss rate is 1 : 0 Key buffer free ratio = 88 % Your key_buffer_size seems to be fine QUERY CACHE Query cache is supported but not enabled Perhaps you should set the query_cache_size SORT OPERATIONS Current sort_buffer_size = 512 K Current read_rnd_buffer_size = 512 K No sort operations have been performed 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 = 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 = 64 tables Current table_definition_cache = 400 tables You have a total of 68 tables You have 64 open tables. Current table_cache hit rate is 90% , while 100% of your table cache is in use You should probably increase your table_cache TEMP TABLES Current max_heap_table_size = 16 M Current tmp_table_size = 16 M Of 281 temp tables, 11% were created on disk Created disk tmp tables ratio seems fine TABLE SCANS Current read_buffer_size = 256 K Current table scan ratio = 4 : 1 read_buffer_size seems to be fine TABLE LOCKING Current Lock Wait ratio = 0 : 358 Your table locking seems to be fine [root@Slave02 ~]#
相关文章推荐
- MySQL调优脚本tuning-primer.sh使用说明
- MySQL调优脚本tuning-primer.sh使用说明
- MySQL调优脚本tuning-primer.sh使用说明
- tuning-primer.sh 性能调试工具的使用
- MySQL的性能调优工具:比mysqlreport更方便的tuning-primer.sh
- tuning-primer.sh性能调试工具的使用
- MySQL的性能调优工具:tuning-primer.sh
- mysql性能优化之Tuning-primer.sh的使用
- MySQL的性能调优工具tuning-primer.sh
- MySQL的性能调优工具:tuning-primer.sh
- MySQL的性能调优工具:比mysqlreport更方便的tuning-primer.sh
- MySQL调优脚本tuning-primer.sh
- PHP性能调优,PHP慢日志---PHP脚本执行效率性能检测之WebGrind的使用
- mysql系统监控调优工具tuning-primer.sh
- jvm第五节-性能调优工具使用
- 使用gen_initramfs_list.sh脚本轻松创建cpio格式的initramfs文件
- 在linux中使用sar调优系统性能
- jvm第五节-性能调优工具使用
- mysql监测工具tuning-primer.sh
- 使用 IBM Page Detailer 分析 Web 应用性能与调优