selamat sore menjelang malam.
mau numpang tanya nih, bagaimana ya optimasi mysql?
di top kok mysql makan 61% cpu.
hasil dari mysql tunner:
load server kadang tinggi lebih dari 50.00 jadi webnya pada ga bisa dibuka
mau numpang tanya nih, bagaimana ya optimasi mysql?
di top kok mysql makan 61% cpu.
hasil dari mysql tunner:
-------- Performance Metrics -------------------------------------------------
[--] Up for: 18m 49s (20K q [18.280 qps], 776 conn, TX: 59M, RX: 3M)
[--] Reads / Writes: 73% / 27%
[--] Total buffers: 80.0M global + 3.9M per thread (200 max threads)
[OK] Maximum possible memory usage: 855.0M (27% of installed RAM)
[OK] Slow queries: 0% (6/20K)
[OK] Highest usage of available connections: 13% (26/200)
[OK] Key buffer size / total MyISAM indexes: 16.0M/488.9M
[OK] Key buffer hit rate: 97.3% (323K cached / 8K reads)
[OK] Query cache efficiency: 58.3% (8K cached / 13K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (4 temp sorts / 1K sorts)
[!!] Joins performed without indexes: 137
[OK] Temporary tables created on disk: 14% (296 on disk / 2K total)
[OK] Thread cache hit rate: 96% (26 created / 776 connections)
[!!] Table cache hit rate: 0% (256 open / 171K opened)
[OK] Open file limit used: 50% (512/1K)
[OK] Table locks acquired immediately: 99% (11K immediate / 11K locks)
-------- 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
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
join_buffer_size (> 1.0M, or always use indexes with joins)
table_cache (> 256)
root@server1[~]#
load server kadang tinggi lebih dari 50.00 jadi webnya pada ga bisa dibuka
