国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql性能優化腳本mysqltuner.pl使用介紹

2024-07-24 12:41:02
字體:
來源:轉載
供稿:網友
MySQLTuner 下載地址:   MySQLTuner 使用方法:  Downloading and using MySQLTuner is actually a very simple process:   wget mysqltuner.pl  perl mysqltuner.pl   If you'd rather not invoke perl every time, just make it executable:   chmod u+x mysqltuner.pl  ./mysqltuner.pl   » Latest development version  If you want to get the bleeding edge commits, you can check out the latest code with git:   git clone git://github.com/rackerhacker/MySQLTuner-perl.git   看看我的運行結果   復制代碼 代碼如下:     >> MySQLTuner 1.1.1 - Major Hayden  >> Bug reports, feature requests, and downloads at  >> 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.43-log  [OK] Operating on 64-bit architecture   -------- Storage Engine Statistics -------------------------------------------  [--] Status: -Archive -BDB -Federated -InnoDB -ISAM -NDBCluster  [--] Data in MyISAM tables: 889M (Tables: 479)  [--] Data in MEMORY tables: 1M (Tables: 4)  [!!] Total fragmented tables: 29   -------- Security Recommendations -------------------------------------------  [OK] All database users have passwords assigned   -------- Performance Metrics -------------------------------------------------  [--] Up for: 12h 55m 27s (4M q [105.230 qps], 295K conn, TX: 9B, RX: 546M)  [--] Reads / Writes: 82% / 18%  [--] Total buffers: 432.0M global + 6.3M per thread (500 max threads)  [!!] Maximum possible memory usage: 3.5G (175% of installed RAM)  [OK] Slow queries: 0% (48K/4M)  [OK] Highest usage of available connections: 3% (16/500)  [OK] Key buffer size / total MyISAM indexes: 384.0M/332.6M  [OK] Key buffer hit rate: 100.0% (2B cached / 205K reads)  [OK] Query cache efficiency: 49.3% (1M cached / 3M selects)  [!!] Query cache prunes per day: 268042  [OK] Sorts requiring temporary tables: 0% (10 temp sorts / 122K sorts)  [OK] Temporary tables created on disk: 19% (4K on disk / 22K total)  [OK] Thread cache hit rate: 99% (16 created / 295K connections)  [!!] Table cache hit rate: 18% (256 open / 1K opened)  [OK] Open file limit used: 19% (497/2K)  [!!] Table locks acquired immediately: 88%   -------- Recommendations -----------------------------------------------------  General recommendations:  Run OPTIMIZE TABLE to defragment tables for better performance  MySQL started within last 24 hours - recommendations may be inaccurate  Reduce your overall MySQL memory footprint for system stability  Increase table_cache gradually to avoid file descriptor limits  Optimize queries and/or use InnoDB to reduce lock wait  Variables to adjust:  *** MySQL's maximum memory usage is dangerously high ***  *** Add RAM before increasing MySQL buffer variables ***  query_cache_size (> 32M)  table_cache (> 256)
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 清水河县| 萝北县| 红河县| 锡林郭勒盟| 钦州市| 诸暨市| 桐城市| 霸州市| 门源| 科技| 三明市| 六枝特区| 会泽县| 镇宁| 洛浦县| 德安县| 綦江县| 灵台县| 长岛县| 壶关县| 嫩江县| 万年县| 迁安市| 兰考县| 宁津县| 祁连县| 遂平县| 额尔古纳市| 谢通门县| 信阳市| 高阳县| 怀化市| 吉首市| 扶风县| 当阳市| 科技| 增城市| 岑巩县| 枣强县| 海南省| 紫阳县|