大家好, 我的論壇是有兩個主機運行的, 一個負責 httpd, exim 等, 另一個主要負責 mysqld
兩台主機都是 linux, 而運行 mysqld 的主機是雙核芯 2.7G 的
3G 的記憶體, 但好似 discuz 上有三百人左右在線已力不從心了, 最多也只是五百多在線人數就會支持不住, 請問各高手會是啥問題呢?
論壇是 http://gs-discuss.com 以下是 my.cnf
[mysqld]
skip-locking
skip-innodb
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
max_connections=1000
interactive_timeout=100
wait_timeout=5
connect_timeout=10
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
# Most Quack Web Dedicated Servers have dual processors
# If your dedicated server however only has one processor
# thread_concurrency should be 2 otherwise leave as 4
thread_concurrency=4
myisam_sort_buffer_size=64M
log-bin
server-id=1
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
#safe-updates
[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysqlhotcopy]
interactive-timeout
多謝賜教! |