Hi Guys,
Learning great info from you guys in past i manage to run server independently. Now after year or so server is kind of slowing down sometimes, may be its spiking the max connection of 50 users or exceeding innodb buffer, i am not sure. Please advise what next tweak is needed based on below. Any help is highly appreciated. Thanks in advance.
Tuning report:
Current my.cnf
Learning great info from you guys in past i manage to run server independently. Now after year or so server is kind of slowing down sometimes, may be its spiking the max connection of 50 users or exceeding innodb buffer, i am not sure. Please advise what next tweak is needed based on below. Any help is highly appreciated. Thanks in advance.
Tuning report:
Code:
>> MySQLTuner 1.2.0 - Major Hayden <[email protected]>
>> Bug reports, feature requests, and downloads at [url]http://mysqltuner.com/[/url]
>> 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.68-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: 340M (Tables: 207)
[--] Data in InnoDB tables: 330M (Tables: 2815)
[--] Data in MEMORY tables: 0B (Tables: 4)
[!!] Total fragmented tables: 2851
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 33h 19m 5s (506K q [10.559 qps], 18K conn, TX: 988M, RX: 63M)
[--] Reads / Writes: 69% / 31%
[--] Total buffers: 540.0M global + 4.6M per thread (50 max threads)
[OK] Maximum possible memory usage: 768.1M (37% of installed RAM)
[OK] Slow queries: 0% (2K/506K)
[OK] Highest usage of available connections: 30% (15/50)
[OK] Key buffer size / total MyISAM indexes: 8.0M/97.2M
[OK] Key buffer hit rate: 98.6% (285K cached / 3K reads)
[OK] Query cache efficiency: 63.7% (204K cached / 320K selects)
[!!] Query cache prunes per day: 18532
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 9K sorts)
[!!] Joins performed without indexes: 3110
[!!] Temporary tables created on disk: 27% (16K on disk / 61K total)
[OK] Thread cache hit rate: 99% (16 created / 18K connections)
[!!] Table cache hit rate: 0% (4K open / 496K opened)
[OK] Open file limit used: 5% (495/8K)
[OK] Table locks acquired immediately: 99% (184K immediate / 184K locks)
[!!] InnoDB data size / buffer pool: 330.9M/200.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Adjust your join queries to always utilize indexes
Temporary table size is already large - reduce result set size
Reduce your SELECT DISTINCT queries without LIMIT clauses
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (> 64M)
join_buffer_size (> 2.0M, or always use indexes with joins)
table_cache (> 4096)
innodb_buffer_pool_size (>= 330M)
Current my.cnf
Code:
[mysqld]
plugin_dir=/usr/lib/mysql/plugin
#### InnoDB-Plugin SETTINGS NEED REMOVED BEFORE MySQL 5.5 UPGRADE!!!! ###
ignore_builtin_innodb
plugin-load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_lo$
innodb_strict_mode = 1
#### END InnoDB-Plugin #####
max_connections=50
slow_query_log
max_allowed_packet=32M
query_cache_size=64M
query_cache_limit=2M
tmp_table_size=256M
max_heap_table_size=256M
long-query-time = 1
thread_cache_size=12
table_open_cache=4096
#### Per connection configuration ####
sort_buffer_size=2M
join_buffer_size=2M
thread_stack=192K
##### INNODB Specific Options ######
default_table_type=InnoDB
innodb_buffer_pool_size=200M
innodb_flush_log_at_trx_commit=0
innodb_log_buffer_size=4M
innodb_flush_method=O_DSYNC
open_files_limit=7916