Hello all, i hope i am posting this in the right place. My website is only about 2 months old and i seem to have an issue with my host provider JustHost as they are telling me they have to throttle me due to high CPU usage. I was told to check my slow queries and if anything was over 1 second then that is my problem, and this is what i found.
# Wed Sep 11 07:10:38 2013
# Query_time: 5.793950 Lock_time: 0.000120 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378905038;
SHOW DATABASES
# Wed Sep 11 07:10:44 2013
# Query_time: 6.185670 Lock_time: 0.000156 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378905044;
SHOW DATABASES
# Wed Sep 11 07:10:51 2013
# Query_time: 6.978089 Lock_time: 0.000161 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378905051;
SHOW DATABASES
# Wed Sep 11 07:27:55 2013
# Query_time: 4.168393 Lock_time: 0.000159 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378906075;
SHOW DATABASES
# Wed Sep 11 07:28:32 2013
# Query_time: 16.741510 Lock_time: 0.000140 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378906112;
SHOW DATABASES
# Wed Sep 11 07:28:51 2013
# Query_time: 10.452144 Lock_time: 0.000179 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378906131;
SHOW DATABASES
# Wed Sep 11 07:29:12 2013
# Query_time: 11.195611 Lock_time: 0.000164 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378906152;
SHOW DATABASES
# Wed Sep 11 07:38:59 2013
# Query_time: 9.592911 Lock_time: 0.000217 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378906739;
SHOW DATABASES
# Wed Sep 11 07:40:44 2013
# Query_time: 19.121807 Lock_time: 0.000125 Rows_sent: 2 Rows_examined: 2
SET timestamp=1378906844;
SHOW DATABASES
# Wed Sep 11 07:41:18 2013
# Query_time: 7.733867 Lock_time: 0.000075 Rows_sent: 0 Rows_examined: 45708
use afcenews_wor1;
SET timestamp=1378906878;
delete from tmh_comments WHERE comment_approved ="1"
I really dont know anything about MySQL or databases i am the definitive newbie and what i have learned about coding in the past 2 months is enough to just get me in trouble. Currently my site has 100+ members and over 100,000+ comments with 2-3,000 comments added a day. My site is very very slow and i just have no idea how to fix it so i am asking for help. My site address is afcenews.com. Thank you in advance to whomever can help me on this.