Server Load issue (info inside)

Started by Maxtor, July 19, 2011, 06:26:37 PM

Previous topic - Next topic

Maxtor

Im running my forum on a dedicated machine with these specs:

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
4GB RAM
CENTOS 5.6 x86_64
mysql 5.1.56-log
httpd 2.2.19

nginx installed.

my my.cnf file for sql:

[mysqld]
set-variable = max_connections=500
log-slow-queries
safe-show-database
innodb_buffer_pool_size=400M
safe-show-database
query_cache_limit=2M
query_cache_size=128M ## 32MB for every 1GB of RAM
query_cache_type=1
max_user_connections=100
max_connections=600
interactive_timeout=100
wait_timeout=200
connect_timeout=200
thread_cache_size=128
key_buffer=512M ## 128MB for every 1GB of RAM
join_buffer=16M
max_connect_errors=20
max_allowed_packet=64M
table_cache=4096 ## should be modified depending on the tables
tmp_table_size=100M
max_heap_table_size=100M
record_buffer=16M
sort_buffer_size=4M ## 1MB for every 1GB of RAM
read_buffer_size=4M ## 1MB for every 1GB of RAM
read_rnd_buffer_size=4M  ## 1MB for every 1GB of RAM
thread_concurrency=32 ## Number of CPUs x 2
myisam_sort_buffer_size=64M
server-id=1
#log_slow_queries=/var/log/mysql-slow-queries.log
slow_query_log=1
slow_query_log_file=/var/log/mysql-slow-queries.log
# Don't Forget To Do
# touch /var/log/mysql-slow-queries.log
# chown mysql.mysql /var/log/mysql-slow-queries.log
long_query_time=2
collation-server=latin1_general_ci

#[mysql.server]
#user=mysql
#basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=16384 ## should be modified depending on the opened files

[mysqldump]
quick
max_allowed_packet=64M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer=1024M
sort_buffer=1024M
read_buffer=256M
write_buffer=256M

[myisamchk]
key_buffer=1024M
sort_buffer=1024M
read_buffer=256M
write_buffer=256M

[mysqlhotcopy]
interactive-timeout


My mySQL has both innoDB and MyISAM tables.

I have attached top -c information and server load via cpanel. what to do to reduce server load? its 70-90 all the time.
My dedicated in running ONLY my forum SMF 2.0 and nothing else.

(please notice that before upgrade from 1.1.14 to 2.0 , forum was running really fast).

Hotman

#1
[ GR ] Καλησπέρα Νίκο, θα ήθελα να σε ενημερώσω πως η αναβάθμιση του forum σου από 1.1.14 σε 2.0 ήταν πολύ καλή κίνηση αρχικά...Τώρα για το πόσο "βαρύ" προέκυψε άλλο θέμα αυτό. Απ' ότι βλέπεις άλλωστε η 2.0 version είναι πολύ λειτουργική, έχει πολλές δυνατότητες...Πιστεύω, αυτός είναι ένας παραπάνω λόγος που σου γονατίζει το μηχάνημα. Επίσης, θα σου πρότεινα να κάνεις καθημερινή επανεκκίνηση του dedicated για τυχον lags και τα λοιπα. Εαν συνεχίζει το προβλημα σου εδώ ειμαστε  ;) [ GR ]

[EDIT] [ GR ] Πόσο τα % χρησιμοποιούσε ο dedicated σου για να σηκώσει το 1.1.14?[ GR ]

Advertisement: