Hello,
M server's load is very high, i have noticed that MYSQL process causing high cpu usage.
by runing MySQL tuner script , it suggests to adjust those variables:
This is my my.cnf configuration:
Thanks.
M server's load is very high, i have noticed that MYSQL process causing high cpu usage.
by runing MySQL tuner script , it suggests to adjust those variables:
Code:
Variables to adjust:
query_cache_size (> 200M) [see warning above]
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
table_cache (> 10000)
innodb_buffer_pool_size (>= 468M)
Code:
[myisamchk]
read_buffer=2M
sort_buffer_size=256M
write_buffer=2M
key_buffer_size=256M
[mysqld]
myisam_sort_buffer_size=64M
read_rnd_buffer_size=8M
log-slow-queries
query_cache_size=200M
thread_cache_size=8
max_allowed_packet=32M
table_open_cache=10000
local-infile=0
max_connections=400
key_buffer_size=384M
read_buffer_size=2M
server-id=1
datadir="/home/var_mysql/mysql"
thread_concurrency=4
sort_buffer_size=2M
port=3306
bind-address=127.0.0.1
skip-external-locking
socket="/var/lib/mysql/mysql.sock"
default-storage-engine=MyISAM
innodb_file_per_table=1
open_files_limit=50000
[client]
port=3306
socket="/var/lib/mysql/mysql.sock"
[mysqldump]
max_allowed_packet=16M
quick
[mysql]
no-auto-rehash
[mysqlhotcopy]
interactive-timeout