Michael
Active member
Hey everyone,
I am having a few issues with my site at the moment, for the past couple of weeks the sites been fast, loading threads is quick, viewing the homepage, posting profile posts, everything seems speedy. The only problem is when you post it will lag and take up to 20 seconds for the post to go through. I have tried tweaking running mysqltuner but theres some things mentioned I am not sure about at the end of it:
The part I do not know about is the temporary table size is large already - reduce result set size.
Here is my my.cnf:
I would be very grateful if someone took at look at this data and helped me sort it out with any changes that are needed.
Thank you
Slow log posted below.
I am having a few issues with my site at the moment, for the past couple of weeks the sites been fast, loading threads is quick, viewing the homepage, posting profile posts, everything seems speedy. The only problem is when you post it will lag and take up to 20 seconds for the post to go through. I have tried tweaking running mysqltuner but theres some things mentioned I am not sure about at the end of it:
Code:
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.28-cll
[!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 61M (Tables: 84)
[--] Data in InnoDB tables: 171M (Tables: 156)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[--] Data in MEMORY tables: 5M (Tables: 3)
[!!] Total fragmented tables: 41
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 2d 14h 41m 44s (2M q [10.564 qps], 180K conn, TX: 13B, RX: 674M)
[--] Reads / Writes: 60% / 40%
[--] Total buffers: 672.0M global + 10.4M per thread (50 max threads)
[OK] Maximum possible memory usage: 1.2G (39% of installed RAM)
[OK] Slow queries: 0% (22/2M)
[OK] Highest usage of available connections: 24% (12/50)
[OK] Key buffer size / total MyISAM indexes: 64.0M/56.5M
[OK] Key buffer hit rate: 99.8% (12M cached / 19K reads)
[OK] Query cache efficiency: 41.8% (529K cached / 1M selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (20 temp sorts / 85K sorts)
[!!] Temporary tables created on disk: 38% (9K on disk / 25K total)
[OK] Thread cache hit rate: 99% (12 created / 180K connections)
[OK] Table cache hit rate: 25% (399 open / 1K opened)
[OK] Open file limit used: 25% (256/1K)
[OK] Table locks acquired immediately: 99% (2M immediate / 2M locks)
[OK] InnoDB data size / buffer pool: 171.2M/256.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Temporary table size is already large - reduce result set size
Reduce your SELECT DISTINCT queries without LIMIT clauses
The part I do not know about is the temporary table size is large already - reduce result set size.
Here is my my.cnf:
Code:
[mysqld]
table_open_cache = 400
query_cache_limit=10M
thread_cache_size=12
read_buffer_size=3M
max_allowed_packet=15M
tmp_table_size=256M
sort_buffer_size=3M
join_buffer_size=4M
key_buffer_size=64M
myisam_sort_buffer_size=32M
query_cache_size=80M
max_heap_table_size=256M
max_connections=50
innodb_buffer_pool_size=256M
innodb_file_per_table=1
default-storage-engine=MyISAM
log-slow-queries
I would be very grateful if someone took at look at this data and helped me sort it out with any changes that are needed.
Thank you
Slow log posted below.