slow pages passed by PHP interpreter via locale network

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Skrol29

    slow pages passed by PHP interpreter via locale network

    Hello,

    In order to encircle a problem of performance we have with our PHP
    scripts, we were brought the make the following test. We take a
    standard HTML page of our site, and we make a copy of this file but
    renaming it with the PHP extension. This way, those two HTML and PHP
    files have exactly the same content which is entirely HTML without any
    PHP tags, neither PHP commands.

    The we benched the time for displaying those pages (using FireFox):
    Source HTML + extension HTML + called from Locale Machine =0,5 sec
    Source HTML + extension PHP + called from Locale Machine =0,5 sec
    Source HTML + extension HTML + called from Local Network =0,5 sec
    Source HTML + extension PHP + called from Local Network =4 sec (!!)

    All Calls are made with the same URL in http://....
    This behavior is the same on several client PC we've tested in our
    Local Network.

    The server is Win2000 + Pentium III-800 + 256 Mb Ram. Apache 2.0.55 +
    PHP 5.1.6 are manually installed and running, the server has no other
    specific software. There is no anti-virus, no fire-wall.

    Do you have an idea of what can cause pages passed by the PHP
    interpreter to be dramatically slowed down only when they are called
    via the locale network ?

    ------------
    Skrol 29
    ------------

  • Andy Hassall

    #2
    Re: slow pages passed by PHP interpreter via locale network

    On 6 Sep 2006 03:13:39 -0700, "Skrol29" <skrol29@freesu rf.frwrote:
    >In order to encircle a problem of performance we have with our PHP
    >scripts, we were brought the make the following test. We take a
    >standard HTML page of our site, and we make a copy of this file but
    >renaming it with the PHP extension. This way, those two HTML and PHP
    >files have exactly the same content which is entirely HTML without any
    >PHP tags, neither PHP commands.
    >
    >The we benched the time for displaying those pages (using FireFox):
    >Source HTML + extension HTML + called from Locale Machine =0,5 sec
    >Source HTML + extension PHP + called from Locale Machine =0,5 sec
    >Source HTML + extension HTML + called from Local Network =0,5 sec
    >Source HTML + extension PHP + called from Local Network =4 sec (!!)
    >
    >All Calls are made with the same URL in http://....
    >This behavior is the same on several client PC we've tested in our
    >Local Network.
    >
    >The server is Win2000 + Pentium III-800 + 256 Mb Ram. Apache 2.0.55 +
    >PHP 5.1.6 are manually installed and running, the server has no other
    >specific software. There is no anti-virus, no fire-wall.
    >
    >Do you have an idea of what can cause pages passed by the PHP
    >interpreter to be dramatically slowed down only when they are called
    >via the locale network ?
    A wild guess; do you have compression enabled for static pages (e.g. on Apache
    that'd be mod_deflate), but not enabled for PHP (e.g. using
    zlib.output_com pression)?

    How big is the page, and how fast is the network? If the page is small and the
    network fast, then this probably isn't the issue.

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • Alvaro G. Vicario

      #3
      Re: slow pages passed by PHP interpreter via locale network

      *** Skrol29 escribió/wrote (6 Sep 2006 03:13:39 -0700):
      The server is Win2000 + Pentium III-800 + 256 Mb Ram. Apache 2.0.55 +
      PHP 5.1.6 are manually installed and running, the server has no other
      specific software. There is no anti-virus, no fire-wall.
      Apache has some proxy modules that may be enabled by default. Check for
      lines like these in your httpd.conf file:

      LoadModule proxy_module modules/mod_proxy.so
      LoadModule proxy_connect_m odule modules/mod_proxy_conne ct.so
      LoadModule proxy_http_modu le modules/mod_proxy_http. so
      LoadModule proxy_ftp_modul e modules/mod_proxy_ftp.s o

      I've learnt that these modules sometimes behave... weird.


      You can also install Ethereal and capture the packets at both server and
      client.

      --
      -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
      ++ Mi sitio sobre programación web: http://bits.demogracia.com
      +- Mi web de humor con rayos UVA: http://www.demogracia.com
      --

      Comment

      • Chung Leong

        #4
        Re: slow pages passed by PHP interpreter via locale network

        Skrol29 wrote:
        Hello,
        >
        In order to encircle a problem of performance we have with our PHP
        scripts, we were brought the make the following test. We take a
        standard HTML page of our site, and we make a copy of this file but
        renaming it with the PHP extension. This way, those two HTML and PHP
        files have exactly the same content which is entirely HTML without any
        PHP tags, neither PHP commands.
        >
        The we benched the time for displaying those pages (using FireFox):
        Source HTML + extension HTML + called from Locale Machine =0,5 sec
        Source HTML + extension PHP + called from Locale Machine =0,5 sec
        Source HTML + extension HTML + called from Local Network =0,5 sec
        Source HTML + extension PHP + called from Local Network =4 sec (!!)
        >
        All Calls are made with the same URL in http://....
        This behavior is the same on several client PC we've tested in our
        Local Network.
        >
        The server is Win2000 + Pentium III-800 + 256 Mb Ram. Apache 2.0.55 +
        PHP 5.1.6 are manually installed and running, the server has no other
        specific software. There is no anti-virus, no fire-wall.
        >
        Do you have an idea of what can cause pages passed by the PHP
        interpreter to be dramatically slowed down only when they are called
        via the locale network ?
        >
        ------------
        Skrol 29
        ------------
        What if the page is blank?

        Comment

        Working...