December 11, 201312 yr Hi, I've been working on a new development and I've found an increase in load time fluctuation. The site is on a vps from Heart Internet and to test the load time I use; <?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; ?> <?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), ; echo '<!-- Page generated in '.$total_time.' seconds. -->'; ?> with the first before anything and the last bit just before the bottom body. The php on the page itself is quite extensive but saying that it all runs from 1 array via include_once. The problem is I am getting load times of between 0.9 all the way to 13.5 secs ish with the same code. I am the only one using this server at the moment, fully locked off with password, robots block etc so I have no idea why the same page would take so long. Any ideas or is it just a poor host? Just thought I'd check before rattling the support cage. Ta
December 11, 201312 yr As it's a VPS it does sound as if it's something server side. 1. Submit a ticket with Heart to see if there are any issues on the server 2. Test the code on a different sever to see if it's the same
December 12, 201312 yr Author Good thinking batman, will give that a go and rattle the old support cage. I wasn't sure about vps, first time I've ever seen this sort of behaviour. Update: Set up some shared cloud space on another host and it seems to always load under 3 seconds (normally around 1 - 1.5 ... obviously there is always some fluctuation but I think 13 secs might be a bit excessive with the vps ... off to support!
Create an account or sign in to comment