MySQL Forums
Forum List  »  Performance

Server hi cpu usage and high load
Posted by: Wilson Hernandez
Date: September 06, 2013 08:45AM

Hello.

I'm really frustrated trying to get my server up and running correctly. I have a 4 core with 8GB of RAM server. Every time I start and run my server it only runs for about 10 to 15 minutes. After that the cpu % climbs up to 400 and server load shows the following: 120.0 113.0 99.2 .....

I'm hosting 6 joomla websites, one of these have high traffic.

I don't know what to do I've tried different configurations and still having the same problem.

This is what my my.cnf looks like:

[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
log_warnings = 1

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
log_warnings = 1
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1

#
# * Fine Tuning
#


key_buffer_size = 384M

# prf 20110718 changed from default 16M to meet Fogbugz requirements
max_allowed_packet = 50M

thread_stack = 192K
thread_cache_size = 16

# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP

#
# * Query Cache Configuration
#
query_cache_limit = 16M
query_cache_size = 64M

tmp_table_size = 1024M
max_heap_table_size = 1024M

#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#
# Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
#
# Here you can see queries with especially long duration
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 5
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name

#Following 4 lines added by Fog Creek Software
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
table_open_cache = 512
optimizer_search_depth = 0

[mysqldump]
quick
quote-names
max_allowed_packet = 2GB

[myisamchk]
key_buffer_size = 256M
sort_buffer_size = 256M
read_buffer_size = 2M
write_buffer_size = 2M



I don't know what to do, please guide me on what I can do to get this server ready.

Thanks in advanced for your time and help.

Options: ReplyQuote


Subject
Views
Written By
Posted
Server hi cpu usage and high load
3248
September 06, 2013 08:45AM
1139
September 07, 2013 10:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.