I have a joomla site which is eating up a lots of CPU resources. It has a JA TELINE theme. To narrow down the issue i've installed a cleaned joomla site and tried to see if it eats up CPU but it doesn't. But the moment i connect my new joomla to older site's DB, CPU is hitting the roof. New site has only required modules and template from JA Teline. I can't figure out whats causing the CPU n Memory usage to go 100%. This is happening even if there are 1-2 visitors on the website.
CPU is a 2 core processor and server has 2GB dedicated ram even though it is hosted on a shared hosting environment.
I have SSH access to my hosting. If i run TOP command i see about 10-15 threads for php and each consuming about 20-50% CPU.