|
Posted by Matthew Weier O'Phinney on 02/25/05 18:29
* Gerard <Fahr@lycantrope.com>:
> Update on the issue:
> I just upgraded to PHP5 in an attempt to get the speed under control, it
> didn't work.
> What I did notice is that even www.debuginc.com/test2.php (which has NO code
> in it at ALL, only text) takes 5 seconds to load! Upon closer investigation,
> it seems that with both PHP4 and PHP5, any page that ends on .php takes 5
> seconds doing NOTHING before it starts to process and actually load...
> What could delay any given .php page for 5 seconds on both PHP4 and PHP5? It
> doesn't seem to make any sense. I already removed unused CGI modules from
> the Apache load process, but still a 5 second delay.
>
> Another interesting note; if you click from page to page fast enough, it
> doesn't take as long to load. For some reason, after the initial 5 second
> startup hic, it loads consequent pages smoothly. If you wait for 10 seconds
> and then click a link, it loads for 5 seconds again.
I don't think it's likely a PHP issue -- my guess is that it's a server
issue, and possibly an Apache issue. Have you looked in your Apache
logs? What happens if you try one of the pages from the command line --
e.g., 'php page.php' -- is this also slow?
Apache should load PHP into memory on start, which means that any page
request doesn't have to wait for the PHP engine to load -- it's already
on. That is, if you have PHP compiled in as a dynamic shared object. Did
you compile it as a DSO, or static CGI? If the latter, that could
possible cause the issue, as Apache has to invoke the PHP interpreter on
every request.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org
Navigation:
[Reply to this message]
|