Re: PHP slowness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think I have heard that your system can get really bogged down if your log files are HUGE. So you probably are right. I dread the size of the log files if he has a rather busy site and is logging everything...

Randy

Brent Baisley wrote:
I noticed you have your error_reporting level set really high (2039), which is pretty close to everything. That may be fine on a development server, but I wouldn't set it that high on a production server. I'd be curious what you log looks like. Perhaps this is causing your slowness, perhaps not.

Also, you seem to use the short open tag style '<?'. Not that it's causing your problem, but for compatibility you should probably use the long style '<?php'.


On Feb 24, 2005, at 4:54 AM, Gerard wrote:

Hello people,

Recently, one of my webservers became rather slow. At first we thought it
was the MySQL backend, but when logged in on MySQL using the command line
tool over SSH, it runs as smooth as ever.
Static content (normal html pages) also load without delay. It seems that
the bottleneck is PHP itself.
For the sake of comparison, I created 2 test pages:

http://www.debuginc.com/test.html
http://www.debuginc.com/test.php

Everyone I asked says that the PHP page takes over 5 seconds to load while
the HTML one instantly displays. The only code in the PHP page is <? echo
'hello world'; ?>. No MySQL stuff, so that eliminates the initial idea of
MySQL causing the slowness.


Nevertheless, it IS slow and I have no idea why or where to start looking.
The phpinfo() can be found on www.debuginc.com/info.php. Any help or hints
are highly appreciated.


Another interesting note; this problem started a couple of days ago without
any changes in the config or anything. At first I upped the amount of
connections Apache would accept, but it soon turned out that was not the
problem.


Thanks,
- Gerard

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux