Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: High CPU/MySQL lagging
PostPosted: Fri Apr 24, 2015 10:25 pm 
Offline
Junior Member
User avatar

Joined: Wed Apr 11, 2012 8:46 am
Posts: 31
Website: http://www.neomallers.com
Location: Toronto Canada
Hello! Im having a bit of isssue with a 2GB linode that i cant seem to wrap my head around. I have a friend's wordpress site that gets about 3k pageviews a day. it's basically a blog. I've installed supercache and all that jazz. Yet every hour or so, the server hangs. (It appears to MySQL as disabling that brings the sites online - except for a cannot connect to database error.. in other words, static stuff appears to be fine) During this time, I'm often seeing a spike in MySQL memory. Rebooting the server doesnt really do anything either - oddly. Eventually, it fixes itself and everything moves fast.

The server is running Ubuntu 10.04 LTS 32 bit, php5-fpm/fastcgi, MySQL 5.1.7, memcache
Before i stuck the friend's blog on here, CPU was sitting at a cool and constant 5-10% on my own drupal sites.
Root login is disabled (using ssh keys)
I've changed php5-fpm to ONDEMAND from DYNAMIC. I can post config files if needed too.

Oddly, php5-fpm process appears to be spikng more on average than mysql.. though i see the latter spiking too.

Image
Image
Image

My mess of a my.cnf file:

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


[mysqld_safe]


socket      = /var/run/mysqld/mysqld.sock
nice      = 0

[mysqld]
user      = mysql
socket = /var/run/mysqld/mysqld.sock
port = 5488
basedir      = /usr
datadir = /var/lib/mysql
tmpdir      = /tmp
skip-external-locking

bind-address = 127.0.0.1


innodb_buffer_pool_size=512M
key_buffer      =32M
max_allowed_packet = 1M
thread_stack      = 128K
thread_cache_size       = 8
sort_buffer = 64K
net_buffer_length = 2K
max_connections = 75
read_rnd_buffer_size=512K

myisam-recover         = BACKUP

table_cache = 64
tmp_table_size=32M
max_heap_table_size=32M
query_cache_limit   = 32M
query_cache_size = 64M



log_error  = /var/log/mysql/error.log

log_slow_queries   = /var/log/mysql/mysql-slow.log
long_query_time = 1
log-queries-not-using-indexes=0
expire_logs_days   = 10
max_binlog_size         = 100M
set-variable = myisam_sort_buffer_size=8M
set-variable = sort_buffer=8M
set-variable = key_buffer=16M
innodb_file_per_table = 1


[mysqldump]
quick
quote-names
max_allowed_packet   = 16M

[mysql]

[isamchk]
key_buffer      = 2M

!includedir /etc/mysql/conf.d/


any help would be appreciated! Also bear with me since Im not exactly the best at all this stuff either. Thank you!


Top
   
PostPosted: Sat Apr 25, 2015 5:49 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Ubuntu 10.04? Time to replace your sever, support for that server expires on the 30th April. Replace the server with Ubuntu 14.04 and see if your problems go away.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Mon Apr 27, 2015 5:15 pm 
Offline
Junior Member
User avatar

Joined: Wed Apr 11, 2012 8:46 am
Posts: 31
Website: http://www.neomallers.com
Location: Toronto Canada
yeah it's been on a long list of things to do. Anyone know how hard it is to migrate?

Server loads seem a little bit better when i blocked the xmlprc file but seems to be going up and down still.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group