Mandatory information about my setup:
Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? No
Joomla! version: (2.5)
PHP version: (5)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: (unknown)
Description of my issue:
I have a j2.5 site with about 4000 articles with jreview, and only 1000 visitors a day. I just migrated to a powerful cloud server with 6 core vCPU and 8GB RAM. the server should be more than enough to run the site. I have also installed admin tools pro.
First of all, for such small site, the cpu loading is always high (average over 50% usage), and it would get nearly 100% cpu loading if I enabled joomla default sef, which the mysql process cpu usage will jump from 5% to 100%, and so I am forced to disable sef.
Yesterday, my server's resource (all 6 core vCPU and RAM) suddently overloaded for no reason, and I captured the cpu info as you can see from the screenshot attached. I check that there is only 10 online users at that moment, and I really don't know what caused that.
I run the netstat -n | grep :80 |wc -1 in server, it's only 40 connections.
I then put the joomla site in offline mode, then cpu usage drop to 5%. If I put back the site to online mode, the cpu will be back to 100% usage nearly at once.
Finally the server stop responding, and I had to reboot it. until now the cpu loading still high, and sometime also reached 100% usage for a while, then back to 50% usage.
I checked and checked for everything I know, and the only things I found suspicious is that my site got a few suspicious login users that I believe they are not real users, but registered and logined via script. (I would del them if I saw these users online)
I checked the apached error log, and see a lot error like:
[Fri Dec 28 11:04:55 2012] [error] [client 66.249.77.149] File does not exist: /var/www/vhosts/mysite/httpdocs/xxxxx
[warn] [client 112.120.19.6] mod_fcgid: stderr: PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/vhosts/mysite/httpdocs/plugins/system/debug/debug.php on line 303,
I am really stuck, and don't know what is wrong. since the top command shows nothing about what php script is using so much cpu, I just can't trace to the root of the problem to find out if this is caused by my installed joomla scription or being hacked.
Any advise will be very much appreciated.