Posting Painfully Slow on VPS

I have a vps account and posting a message on our forums is painfully slow. Queries using selects are fine however. I do notice mysql usage when posting can jump to 99% cpu usage!

The forum database is not large, roughly 13 megabytes (15k posts) and on average only 10~20 people are viewing it at one time.

Here is my my.cnf file for mysql:

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
myisam_sort_buffer_size = 8M
skip-innodb
query_cache_limit = 1M
query_cache_size = 4M
query_cache_type = 1

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

Its essentially one of the base configs with caching turned on.

 

 

 

 

Top