Hi,
My server load remains in the range of ~0.5 and sometimes go to 3-4 and my RAM always remains ~400MB free.
Still from last few days my MySQL server is going down almost once in an hour. I have a cronjob running to monitor the MySql process and start it if down, so mostly users are not affected.
I ran mysqltuner.pl and here is the output.
I restart mysql with command "/etc/rc.d/init.d/mysql restart", I don't have much knowledge on MySql configuration settings, can someone help me with the recommended settings and explain what the report is saying?
Thanks,
Pankaj
My server load remains in the range of ~0.5 and sometimes go to 3-4 and my RAM always remains ~400MB free.
Still from last few days my MySQL server is going down almost once in an hour. I have a cronjob running to monitor the MySql process and start it if down, so mostly users are not affected.
I ran mysqltuner.pl and here is the output.
Code:
>> MySQLTuner 1.2.0 - Major Hayden <[email protected]>
>> 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.5.32-cll
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 1G (Tables: 604)
[--] Data in InnoDB tables: 190M (Tables: 70)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[--] Data in MEMORY tables: 0B (Tables: 11)
[!!] Total fragmented tables: 128
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 19m 54s (15K q [13.205 qps], 536 conn, TX: 164M, RX: 1M)
[--] Reads / Writes: 99% / 1%
[--] Total buffers: 168.0M global + 2.8M per thread (151 max threads)
[OK] Maximum possible memory usage: 583.2M (75% of installed RAM)
[OK] Slow queries: 0% (1/15K)
[OK] Highest usage of available connections: 2% (4/151)
[OK] Key buffer size / total MyISAM indexes: 8.0M/360.8M
[OK] Key buffer hit rate: 99.5% (247K cached / 1K reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 3K sorts)
[!!] Temporary tables created on disk: 28% (902 on disk / 3K total)
[!!] Thread cache is disabled
[OK] Table cache hit rate: 50% (400 open / 798 opened)
[OK] Open file limit used: 16% (705/4K)
[OK] Table locks acquired immediately: 100% (16K immediate / 16K locks)
[!!] InnoDB data size / buffer pool: 190.9M/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
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
Variables to adjust:
query_cache_size (>= 8M)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
thread_cache_size (start at 4)
innodb_buffer_pool_size (>= 190M)
Thanks,
Pankaj