2013-06-25 48 views
1

我目前的云服务器上运行,与ukfastMagento的1.7的my.cnf优化

CPU GenuineIntel,英特尔(R)至强(R)CPU E5-2620 0 @ 2.00GHz 版本的Parallels Plesk Panel V11。 0.9_build110120608.16 os_CentOS 6 OS 6.3的CentOS(决赛)64位 RAM:6GB

我有12000 SKU的,但在同一时间从来没有在网站上超过30访港,我试图优化my.cnf文件:

这就是我目前所拥有的:

log_slow_queries = /var/log/mysql-slow.log 
long_query_time = 5 


key_buffer = 32M 
max_allowed_packet = 16M 
table_cache = 1024 
sort_buffer_size = 48M 
read_buffer_size = 92M 
read_rnd_buffer_size = 100M 
myisam_sort_buffer_size = 100M 
myisam_max_sort_file_size = 1G 
myisam_max_extra_sort_file_size = 1G 
myisam_repair_threads = 1 
thread_cache_size = 32 
query_cache_type = 1 
query_cache_size = 200M 
query_cache_limit = 2M 
max_connections=50 
wait_timeout=120 
tmp_table_size = 256M 
max_heap_table_size = 64M 
innodb_buffer_pool_size = 650M 
innodb_additional_mem_pool_size = 24M 

[mysqld_safe] 
log-error=/var/log/mysqld.log 
pid-file=/var/run/mysqld/mysqld.pid} 

有什么我失踪或什么我应该增加或减少?

任何想法/建议将是伟大的。

回答

1

我以前遇到过这个问题。 请试试这个

key_buffer = 32M 
max_allowed_packet = 16M 
table_cache = 1024 
sort_buffer_size = 48M 
read_buffer_size = 92M 
read_rnd_buffer_size = 104M 
myisam_sort_buffer_size = 100M 
myisam_max_sort_file_size = 1024m 
myisam_max_extra_sort_file_size = 1024m 
myisam_repair_threads = 1 
thread_cache_size = 32 
query_cache_type = 1 
query_cache_size = 256M 
query_cache_limit = 2M 
max_connections=50 
wait_timeout=60 
tmp_table_size = 256M 
max_heap_table_size = 64M 
innodb_buffer_pool_size = 650M 
innodb_additional_mem_pool_size = 24M 

,或者你有改变或升级主机到VPS服务器。 Houp这个帮助。 ^^

+0

你是哪里来的? 你是否认为innodb_buffer_pool_size = 650M足够大我的数据库是1.8GB – gavinmckew