Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@pasta [~]# ./mysql.pl
- >> MySQLTuner 1.2.0 - Major Hayden <major@mhtx.net>
- >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
- >> Run with '--help' for additional options and output filtering
- -------- General Statistics --------------------------------------------------
- [--] Skipped version check for MySQLTuner script
- [OK] Currently running supported MySQL version 5.1.65-cll
- [OK] Operating on 32-bit architecture with less than 2GB RAM
- -------- Storage Engine Statistics -------------------------------------------
- [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
- [--] Data in MyISAM tables: 262M (Tables: 937)
- [--] Data in InnoDB tables: 432K (Tables: 27)
- [OK] Total fragmented tables: 0
- -------- Security Recommendations -------------------------------------------
- [OK] All database users have passwords assigned
- -------- Performance Metrics -------------------------------------------------
- [--] Up for: 17s (371 q [21.824 qps], 176 conn, TX: 113K, RX: 42K)
- [--] Reads / Writes: 83% / 17%
- [--] Total buffers: 704.0M global + 9.4M per thread (100 max threads)
- [OK] Maximum possible memory usage: 1.6G (80% of installed RAM)
- [OK] Slow queries: 0% (0/371)
- [OK] Highest usage of available connections: 7% (7/100)
- [OK] Key buffer size / total MyISAM indexes: 256.0M/146.8M
- [OK] Key buffer hit rate: 98.1% (300K cached / 5K reads)
- [OK] Query cache efficiency: 83.6% (158 cached / 189 selects)
- [OK] Query cache prunes per day: 0
- [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 8 sorts)
- [OK] Temporary tables created on disk: 0% (0 on disk / 13 total)
- [OK] Thread cache hit rate: 96% (7 created / 176 connections)
- [OK] Table cache hit rate: 80% (28 open / 35 opened)
- [OK] Open file limit used: 0% (56/8K)
- [OK] Table locks acquired immediately: 100% (63 immediate / 63 locks)
- [OK] InnoDB data size / buffer pool: 432.0K/350.0M
- -------- Recommendations -----------------------------------------------------
- General recommendations:
- MySQL started within last 24 hours - recommendations may be inaccurate
- root@pasta [~]#
- root@pasta [~]# ./tuning-primer.sh
- -- MYSQL PERFORMANCE TUNING PRIMER --
- - By: Matthew Montgomery -
- MySQL Version 5.1.65-cll i686
- Uptime = 0 days 0 hrs 0 min 51 sec
- Avg. qps = 47
- Total Questions = 2427
- Threads Connected = 10
- 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 enabled.
- Current long_query_time = 10.000000 sec.
- You have 0 out of 2473 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 = 16
- Current threads_cached = 5
- Current threads_per_sec = 0
- Historic threads_per_sec = 0
- Your thread_cache_size is fine
- MAX CONNECTIONS
- Current max_connections = 100
- Current threads_connected = 8
- Historic max_used_connections = 12
- The number of used connections is 12% of the configured maximum.
- Your max_connections variable seems to be fine.
- INNODB STATUS
- Current InnoDB index space = 592 K
- Current InnoDB data space = 432 K
- Current InnoDB buffer pool free = 99 %
- Current innodb_buffer_pool_size = 350 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 : 753 M
- Configured Max Per-thread Buffers : 943 M
- Configured Max Global Buffers : 640 M
- Configured Max Memory Limit : 1.54 G
- Physical Memory : 2.00 G
- Max memory limit seem to be within acceptable norms
- KEY BUFFER
- Current MyISAM index space = 146 M
- Current key_buffer_size = 256 M
- Key cache miss rate is 1 : 67
- Key buffer free ratio = 85 %
- Your key_buffer_size seems to be fine
- QUERY CACHE
- Query cache is enabled
- Current query_cache_size = 32 M
- Current query_cache_used = 1 M
- Current query_cache_limit = 16 M
- Current Query cache Memory fill ratio = 4.31 %
- 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 = 4 M
- Current read_rnd_buffer_size = 256 K
- Sort buffer seems to be fine
- JOINS
- Current join_buffer_size = 1.00 M
- 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 = 8302 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 = 4096 tables
- Current table_definition_cache = 1024 tables
- You have a total of 987 tables
- You have 1000 open tables.
- The table_cache value seems to be fine
- TEMP TABLES
- Current max_heap_table_size = 64 M
- Current tmp_table_size = 64 M
- Of 988 temp tables, 4% were created on disk
- Created disk tmp tables ratio seems fine
- TABLE SCANS
- Current read_buffer_size = 4 M
- Current table scan ratio = 13925 : 1
- read_buffer_size seems to be fine
- TABLE LOCKING
- Current Lock Wait ratio = 0 : 2937
- Your table locking seems to be fine
- root@pasta [~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement