|
原帖由 shengang34 于 2008-8-15 13:04 发表 ![]()
Out of memory
key_buffer_size + tmp_table_size + (read_buffer_size + sort_buffer_size + read_rnd_buffer_size +join_buffer_size )*max_connections = ?
如果大于你的物理内存,就会出现这个问题。好好看看你的参数把
这个算出来,确实大于了物理内存, 但有得时候是,只是不停的重启.如下
Number of processes running now: 0
080815 13:07:43 mysqld restarted
080815 13:07:53 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.0.27-standard-log' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Edition - Standard (GPL)
my.cnf
max_connections = 500
max_connect_errors = 100000
key_buffer = 128M
myisam_sort_buffer_size = 51200000
join_buffer_size = 2097152
read_buffer_size = 4194304
sort_buffer_size = 4194304
table_cache = 1000
thread_cache_size = 80
max_join_size = 512000000
max_binlog_cache_size = 512000000
tmp_table_size = 102400000
max_heap_table_size = 102400000
read_rnd_buffer_size = 5242880
bulk_insert_buffer_size = 32M
thread_concurrency = 2
query_cache_limit = 4000000
query_cache_size = 0
query_cache_type = 1
wait_timeout = 7200
interactive_timeout = 7200
skip-innodb
skip-bdb
log-slow-queries
long_query_time=10 |
|