Re: Performance Problem

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

 



I know my original post was long-winded, but I did mention that my php tests were run on a single-line PHP script that simply echoed "hi" so it couldn't get much simpler than that. But for thoroughness' sake, I've run the tests against a test file with a php extension with no PHP code at all, and it suffers the same performance problems/ The only modules loaded for the tests were gd, mysql, pdo.

For what it's worth, I help manage several RHEL servers at my day job that run similar hardware and far more bloated PHP builds that have no performance issues whatsoever. And also, for what it's worth, none of the other services on the server have problems.

On Feb 27, 2008, at 1:00 PM, Daniel Brown wrote:

On Wed, Feb 27, 2008 at 12:39 PM, Adriano Manocchia <age@xxxxxxxxxxxxxx > wrote:
Hi all,

I've been chasing what I think is the same performance issue for about a year and it's driving me batty. First off, the server is a dual core
2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and is under
very light load. This problem started last year while the server was
RHEL4 and I completely rebuilt it with RHEL5.
[snip all of the good stuff --- thanks for a well-written question!]

   Adriano,

   It really depends on what PHP is expected to do prior to serving
the content.  Some things to consider:
       Are you loading a bunch of modules in your php.ini?
       What is the script doing?  Is it reading/writing files?
Including files?  If so, are they local or remote?
       What happens if you take a static HTML page and rename it with
a .php extension and compare load times?

   The last of the questions will be of the most help in determining
which of the first two would be more applicable, because when you
rename the extension, PHP will be loaded by Apache.  This means:
       a.) If the performance is degraded by comparison, it's a
slow-loading PHP engine.
       b.) If the benchmarks are comparable, then it's likely
something in your PHP script(s).

--
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

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