i'm just posting the modified my.cnf i gave you here. his key_buffer was 256M! also lowered max_connections from 500. log-bin was turned on. i can't remember what that does exactly. i think it may log a lot of unnecessary stuff, which would increase disk access (maybe RAM usage too?).
Code:
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
set-variable = max_connections=400
set-variable = key_buffer=16M
set-variable = max_allowed_packet=1M
set-variable = myisam_sort_buffer_size=64M
set-variable = join_buffer=1M
set-variable = record_buffer=1M
set-variable = sort_buffer=2M
set-variable = table_cache=1024
set-variable = thread_cache=64
set-variable = wait_timeout=3600
[mysqldump]
quick
set-variable = max_allowed_packet=16M
[mysql]
no-auto-rehash
[mysqlcheck]
set-variable = key_buffer=128M
set-variable = sort_buffer=128M
set-variable = read_buffer=16M
set-variable = write_buffer=16M
[myisamchk]
set-variable = key_buffer=128M
set-variable = sort_buffer=128M
set-variable = read_buffer=16M
set-variable = write_buffer=16M
[mysqlhotcopy]
interactive-timeout
it's weird that the memory usage is still so high.
DID you restart MySQL after the new file, or weren't you able to? if it hasn't been restarted, then you're not using the new settings. i thought the memory usage should be down below 200M or so, from what i've seen, depending on how many threads (connections) are running.
like MattR said, what's your swap usage like in top? is this a dedicated MySQL server? i assumed the Web server was on it too.
Bookmarks