[code=BatchFile] >>  MySQLTuner 1.0.0 - Major Hayden <[email protected]>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering
Please enter your MySQL administrative login: root
Please enter your MySQL administrative password:-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.70-log
[!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM
这个虽然有4G内存,但是CPU不支持64bit-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated -InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 6G (Tables: 95)
[OK] Total fragmented tables: 0-------- Performance Metrics -------------------------------------------------
[--] Up for: 4h 49m 6s (44M q [2K qps], 370 conn, TX: 2B, RX: 202M)
[--] Reads / Writes: 14% / 86%
[--] Total buffers: 1.5G global + 4.3M per thread (1024 max threads)
[!!] Allocating > 2GB RAM on 32-bit systems can cause system instability
[!!] Maximum possible memory usage: 5.9G (182% of installed RAM)
[OK] Slow queries: 0% (0/44M)
[OK] Highest usage of available connections: 11% (119/1024)
[OK] Key buffer size / total MyISAM indexes: 1.5G/5.4G
[OK] Key buffer hit rate: 97.8% (54M cached / 1M reads)
[!!] Query cache efficiency: 0.0% (0 cached / 1M selects)
这里
[OK] Query cache prunes per day: 74
[OK] Temporary tables created on disk: 8% (72 on disk / 886 total)
[OK] Thread cache hit rate: 67% (119 created / 370 connections)
[!!] Table cache hit rate: 0% (275 open / 1M opened)
还有这个,不知道怎么解决
[OK] Open file limit used: 7% (389/5K)
[OK] Table locks acquired immediately: 99% (1M immediate / 1M locks)-------- Recommendations -----------------------------------------------------
General recommendations:
    MySQL started within last 24 hours - recommendations may be inaccurate
    Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
  *** MySQL's maximum memory usage is dangerously high ***
  *** Add RAM before increasing MySQL buffer variables ***
    query_cache_limit (> 1M, or use smaller result sets)
    table_cache (> 768)
[/code]

解决方案 »

  1.   

    这里
    [OK] Query cache prunes per day: 74
    [OK] Temporary tables created on disk: 8% (72on disk /886 total)
    [OK] Thread cache hit rate: 67% (119 created /370 connections)
    [!!] Table cache hit rate: 0% (275 open / 1M opened)
    还有这个,不知道怎么解决
    [OK] Open file limit used: 7% (389/5K)
    [OK] Table locks acquired immediately: 99% (1M immediate / 1M locks)以上都是OK项啊,不用关注。下面这个是软件给你的建议, 但首先声明了由于你的mysql监视未满 24小时,结果未必准确。General recommendations:
        MySQL started within last 24 hours - recommendations may be inaccurate
        Increase table_cache gradually to avoid file descriptor limits
    Variables to adjust:
      *** MySQL's maximum memory usage is dangerously high ***
      *** Add RAM before increasing MySQL buffer variables ***
        query_cache_limit (> 1M, or use smaller result sets)
        table_cache (>768)该软件认为,你的的内存使用得过高,建议添加内存条,然后调大 query_cache_limit  和 table_cache  参数。
    建议自己再看一下操作系统层上的监控报告。