[eluser]woopsicle[/eluser]
Hi everyone,
I have finished developing a site on my local server (vmware of xubuntu/apache/php/mysql running inside windowsxp).
Locally, the load times are really great - with the {elapsed_time} for every page being 0.01-0.08 seconds (even for the more query intensive pages).
So, thinking everything was wonderful, I have moved to my production server (just a DreamHost shared server).
Now, I would expect that pages render slowly on Dreamhost - but I wouldn't expect the {elapsed_time} output to jump up to 1-10 seconds for pages (which is has).
So i have been trying to debug - and even with absolutely no autoloading, logging set to 0 and a controller with:
Code:
<?php
class Index extends Controller
{
public $data = array();
function Index()
{
parent::Controller();
$this->load->view('index', $this->data);
}
}
?>
and a view file of:
my load times are still anywhere from 0.1 to 2 seconds (depending on the refresh). To me, this is very high??
I have captured the log file contents (by changing the log threshold to 4 for a bit) and this is what it says:
Code:
DEBUG - 2007-09-13 20:23:32 --> Config Class Initialized
DEBUG - 2007-09-13 20:23:32 --> Hooks Class Initialized
DEBUG - 2007-09-13 20:23:33 --> No URI present. Default controller set.
DEBUG - 2007-09-13 20:23:33 --> Router Class Initialized
DEBUG - 2007-09-13 20:23:33 --> Output Class Initialized
DEBUG - 2007-09-13 20:23:33 --> Input Class Initialized
DEBUG - 2007-09-13 20:23:33 --> Global POST and COOKIE data sanitized
DEBUG - 2007-09-13 20:23:33 --> URI Class Initialized
DEBUG - 2007-09-13 20:23:33 --> Language Class Initialized
DEBUG - 2007-09-13 20:23:33 --> Loader Class Initialized
DEBUG - 2007-09-13 20:23:33 --> Controller Class Initialized
DEBUG - 2007-09-13 20:23:33 --> File loaded: /home/.hasbro/blah/blah.com/system/application/views/index.php
DEBUG - 2007-09-13 20:23:33 --> Controller Class Initialized
DEBUG - 2007-09-13 20:23:33 --> File loaded: /home/.hasbro/blah/blah.com/system/application/views/index.php
DEBUG - 2007-09-13 20:23:33 --> Final output sent to browser
DEBUG - 2007-09-13 20:23:33 --> Total execution time: 0.4661
You can see the File loaded: part happens twice for some reason, this only seems to happen in the index.php page - but i dont' think that is the reason for the load times as the other pages which don't have duplicated 'File loaded:' message are still producing similar load times.
I guess i have eliminated to following as the causes:
* mysql being on a separate server to apache - as the slow times happen even when database library isn't loaded
* my code - works fine locally, and also its slow on dreamhost even when i have the most basic controller and view in existence.
anyone have any ideas??
PS> just in case anyone is wondering, the memory usage seems to be around 1.5mb so i think that part is ok.