You are here: Re: [PHP] PHP slowness « PHP « IT news, forums, messages
Re: [PHP] PHP slowness

Posted by Randy Johnson on 02/25/05 00:38

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
>>
>>
>>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация