mysql服务器不使用所有可用的RAM

时间:2014-02-01 13:49:59

标签: mysql performance config

[mysqld]
open_files_limit=10000
skip-name-resolve
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
max_heap_table_size = 2GB
query_cache_limit = 256M
key_buffer_size = 6GB
innodb_table_locks = 0
innodb_buffer_pool_size = 100M
join_buffer_size = 32M
max_connections = 400
max_user_connections = 1400
#skip-bdb
key_buffer = 48M
# max_allowed_packet = 68M
max_allowed_packet = 256M
tmp_table_size = 3GB
table_cache = 800
sort_buffer_size = 1M
net_buffer_length = 8K
read_buffer_size = 1M
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
server-id  = 1
wait_timeout = 28800
query_cache_size = 50M
thread_cache_size = 1024
long_query_time = 4

我们在15GB RAM VPS服务器上配置此配置,仅用于MySQL。问题是服务器在最繁忙的流量期间仅使用3GB的RAM。

有人可以建议在配置中应该调整什么来使用所有可用的RAM吗?

mysqltuner.pl说: [!!]最大可能内存使用量:15.0G(已安装RAM的103%)

0 个答案:

没有答案