vastgar
October 3rd, 2013, 14:08
دوستان نتیجه ای که mysqltunner به من میده مانند زیره:
و طبق گفته ی mysqltunner این مقادیر رو اضافه میکنم به فایل کانفیگم:
query_cache_size = 8M
tmp_table_size =20 16M
max_heap_table_size = 20M
table_cache = 500)
innodb_buffer_pool_size = 439M
اما بازم که ریست میکنم mysql رو و با mysqltuner نتیجه رو می بینم، تغییری نمی کنه:
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.31
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 409M (Tables: 602)
[--] Data in InnoDB tables: 397M (Tables: 115)
[--] Data in MEMORY tables: 124K (Tables: 9)
[!!] Total fragmented tables: 121
-------- Security Recommendations -------------------------------------------
ERROR 1142 (42000) at line 1: SELECT command denied to user 'cloob'@'localhost' for table 'user'
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 19m 7s (112K q [97.891 qps], 3K conn, TX: 936M, RX: 23M)
[--] Reads / Writes: 91% / 9%
[--] Total buffers: 168.0M global + 2.8M per thread (151 max threads)
[OK] Maximum possible memory usage: 583.2M (31% of installed RAM)
[OK] Slow queries: 0% (0/112K)
[OK] Highest usage of available connections: 21% (32/151)
[OK] Key buffer size / total MyISAM indexes: 8.0M/216.2M
[OK] Key buffer hit rate: 99.9% (2M cached / 1K reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 23K sorts)
[!!] Joins performed without indexes: 3030
[!!] Temporary tables created on disk: 46% (10K on disk / 21K total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 8% (400 open / 4K opened)
[OK] Open file limit used: 57% (588/1K)
[OK] Table locks acquired immediately: 99% (127K immediate / 128K locks)
[!!] InnoDB data size / buffer pool: 397.0M/128.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Set thread_cache_size to 4 as a starting value
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (>= 8M)
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
thread_cache_size (start at 4)
table_cache (> 400)
innodb_buffer_pool_size (>= 397M)
و طبق گفته ی mysqltunner این مقادیر رو اضافه میکنم به فایل کانفیگم:
query_cache_size = 8M
tmp_table_size =20 16M
max_heap_table_size = 20M
table_cache = 500)
innodb_buffer_pool_size = 439M
اما بازم که ریست میکنم mysql رو و با mysqltuner نتیجه رو می بینم، تغییری نمی کنه:
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.31
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 409M (Tables: 602)
[--] Data in InnoDB tables: 397M (Tables: 115)
[--] Data in MEMORY tables: 124K (Tables: 9)
[!!] Total fragmented tables: 121
-------- Security Recommendations -------------------------------------------
ERROR 1142 (42000) at line 1: SELECT command denied to user 'cloob'@'localhost' for table 'user'
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 19m 7s (112K q [97.891 qps], 3K conn, TX: 936M, RX: 23M)
[--] Reads / Writes: 91% / 9%
[--] Total buffers: 168.0M global + 2.8M per thread (151 max threads)
[OK] Maximum possible memory usage: 583.2M (31% of installed RAM)
[OK] Slow queries: 0% (0/112K)
[OK] Highest usage of available connections: 21% (32/151)
[OK] Key buffer size / total MyISAM indexes: 8.0M/216.2M
[OK] Key buffer hit rate: 99.9% (2M cached / 1K reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 23K sorts)
[!!] Joins performed without indexes: 3030
[!!] Temporary tables created on disk: 46% (10K on disk / 21K total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 8% (400 open / 4K opened)
[OK] Open file limit used: 57% (588/1K)
[OK] Table locks acquired immediately: 99% (127K immediate / 128K locks)
[!!] InnoDB data size / buffer pool: 397.0M/128.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Set thread_cache_size to 4 as a starting value
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (>= 8M)
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
thread_cache_size (start at 4)
table_cache (> 400)
innodb_buffer_pool_size (>= 397M)