Recently, I migrated a joomla 2.5 site with K2 from a shared host to a dedicated web server with 1 GB of RAM and 8 CPU cores. My problem is now that the website loading is very slow, much slower than on the busy shared server!
Time to first byte is 7 to 10 seconds! But this is only the case for joomla pages. If I put a static page, or even a dynamic page which loads phpinfo for example, it loads in a little fraction of a second.
What I have on the home page is intro of 15 newest articles in the main section plus tag cloud, 15 most read item titles and things like this in modules. I tried to reduce this numbers to just 1 and then the website loads in just 2-3 seconds. It seems the load time increases gradually with number of items being loaded, either in the main section or in the modules. So I guess there is something wrong with MySQL server configuration? I have MySQL 5.5.42 and database type in joomla configuration is mysqli, the same as what I had on the shared hosting.
The mysql server and website are on the same VPS and I am using localhost in joomla configuration. Could anybody advice on this please?