Hi all,
I've got a
Linode 1536 and a single installation of WordPress 3.0.1. My Linode is running Ubuntu LTS 10.04.1, and I've installed Cherokee as web server, and Mysql 5.1.41 is running also there.
My blog is not a huge one:
it gets around 15-20k pageviews/day (around 500k per month), but although in the beginning the linode (it was a 1024 one) was running fine, in the past weeks I've been receiven messages like this all the time:
Quote:
"Your Linode, linode57172, has exceeded the notification threshold (90) for CPU Usage by averaging 104.7% for the last 2 hours."
I'm trying to investigate the causes, but I found
none:
- There's no spike in pageviews or unique visitors.
- I've not installed any new plugins or new versions of the "LAMP" stack.
And the responsible for this high CPU usage
is no other that mysqld. When I execute the 'top' command I get a %CPU that most of the time goes
between 80 and 120. That's really ackward for me, and I'm trying to find the reasons.
I've read the forums carefully and I've googled for mysqld and
CPU consumption problems, but I don't find any answer. Here's some of the most relevant data (to my knowledge) of my
/etc/mysql/my.cnf:
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
query_cache_type = 1
query_cache_limit = 1M
query_cache_size = 64M
I've been trying to 'play' with those parameters, but I haven't found if there's a
magical combo, or if I am doing something really wrong... or
if I even have to look elsewhere.
Any ideas?