- 论坛徽章:
- 0
|
我这里有一台OA服务器,平台是linux,架构是php+apache+zend
打开网页时要很久才会出现数据模块,当并发比较大的时候mysql就会死掉(总用户为2000多人),必须杀掉进程重新启动才能恢复
机器内存是16G的,CPU是两颗 E5530 @ 2.40GHz
my.cnf为:
[client]
#password = your_password
port = 3336
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3336
socket = /tmp/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 1024
sort_buffer_size = 4M
net_buffer_length = 8K
read_buffer_size = 4M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 8M
tmp_table_size=600M
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
safe-updates
[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 4M
write_buffer = 4M
[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 4M
write_buffer = 4M
[mysqlhotcopy]
interactive-timeout
dafault-character-set=gbk
character_set_client=gbk
lower_case_table_names=1 |
|