Dear All,
I have dedicated machine with 32G Ram and 16cpus and only running mysql.Below is my top during the day which is peak time and below is also the mysql config file. What I notice in between sometimes there is quite a number restarts happening. I dont get it why when I have so much of dedicated resources why does mysql goes down? Any reason for it? I am also looking into the slow query but I do have enough resources right?
Top.
top - 12:54:21 up 1 day, 23:31, 2 users, load average: 2.36, 2.00, 2.34
Tasks: 278 total, 3 running, 275 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.0%us, 0.8%sy, 0.0%ni, 94.6%id, 0.2%wa, 0.6%hi, 1.8%si, 0.0%st
Mem: 33009800k total, 22447692k used, 10562108k free, 200920k buffers
Swap: 35061752k total, 0k used, 35061752k free, 18498676k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3011 mysql 20 0 9899m 1.8g 4148 R 127.3 5.8 105:13.53 mysqld
8763 root 20 0 14876 1176 776 R 2.0 0.0 0:00.01 top
1 root 20 0 4080 856 608 S 0.0 0.0 0:01.58 init
My.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-innodb
skip-bdb
max_connections = 1000
key_buffer = 8192M
myisam_sort_buffer_size = 64M
join_buffer_size = 32M
read_buffer_size = 2M
sort_buffer_size = 4M
table_cache = 2048
thread_cache_size = 32
wait_timeout = 200
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 4096M
query_cache_size = 1G
query_cache_type = 1
server-id=1283835628
log-bin=mysql-bin
log-error=mysql-bin.err
binlog_do_db=fms,sms
log-slow-queries = /var/log/mysql/mysql-slow.log
long_query_time = 10
log-queries-not-using-indexes
log_warnings = 2
[mysqld_safe]
err-log=/var/log/mysqld.log
open_files_limit = 10000
[mysqldump]
quick
max_allowed_packet = 16M
[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
[mysql.server]
#user=mysql