mysql的内存应该如何分配,,我的机器访问量一大 就内存溢出。。

我用的是mysql5.0.51a 不需要编译,直接解压就能用的.机器试8cpu 16GB的内存.数据库用的engine是MyISAM。所以我在my.cnf 里面key_buffer 给了4096M.但是访问量一大就会造成内存溢出。mysql连接不上.我把我的my.cnf贴出来.哪位高手帮我看看 我的配置 那里需要改进.
key_buffer = 4096M
max_allowed_packet = 16M
table_cache = 1024
sort_buffer_size = 32M
read_buffer_size = 32M
read_rnd_buffer_size = 32M
myisam_sort_buffer_size = 256M
thread_cache_size = 32
query_cache_size = 256M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8

回复

此内容将保密,不会被其他人看见。
  • 允许的 HTML 标签: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • 行和段被自动切分。
  • 网页地址和电子邮件地址将会被自动转换为链接。

更多格式化选项信息

随机验证
本功能用于防止垃圾信息
在输入框中输入图片上的字符(注意大小写)