I got a problem with CPU usage on my VPS, mysqld use 100% CPU and my site go down, i have a small package, 512MB Ram, wich 300 is free, and my site has 1000-1500 unique visitors, and 50.000 views / week.
my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
query_cache_size=8M
read_rnd_buffer_size=256K
tmp_table_size=16M
max_heap_table_size=16M
thread_cache_size=4
sort_buffer_size=2M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
My question is, if i upgrade RAM it's possible that CPU usage go back to normal?