473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

Sep 6 '06 #1
3 1633
On 6 Sep 2006 03:13:39 -0700, "Skrol29" <sk*****@freesurf.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_compression)?

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 :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Sep 6 '06 #2
*** 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_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

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
--
Sep 6 '06 #3
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?

Sep 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David | last post by:
Hi, We have an internal network of 3 users. Myself & one other currently have individual copies of the front-end MS Access forms and via our individual ODBC links we have used the: File > Get...
7
by: ddsvi78 | last post by:
I am a complete idiot when it comes to access. Now that said, I work for a computer security company and one of our customers came to us with an access problem. They had been running fine for a...
2
by: Scott F. Brown | last post by:
Hello all, I am attempting to work on a project for work at home and I'm experiencing extremely slow page loads. These are pages that work fine in the office but when I try to work on the...
3
by: Pavils Jurjans | last post by:
Hello, I am experiencing very slow processing of ASP.NET pages that are served over LAN, while when running them on the server machine (ie http://localhost), there is no slowdowns. We have...
3
by: Mario Soto | last post by:
Hi. i hava a postresql 7.4.2 in a production server. tha machine is a Pentium IV 2,6 GHZ AND 1 GB IN RAM with lINUX RH 9.0. The postresql.conf say: ...
22
by: Albert Oppenheimer | last post by:
I thought my program had to be caught in a loop, and cancelled it through the task manager. It took about one second in Java, but re-implemented in C, it had already run over one minute. I set...
3
by: LSloan | last post by:
Hi, I have an Access application installed on a network server that is accessed by several users. It isn't split into a front-end/back-end (I know it should be but when I've tried, the response...
0
by: Lars | last post by:
I am using Microsoft .NET (2.0) PrintPreviewDialog and all works well when the Windows default printer is set to a local printer or a network printer on a Windows server, but if I set it to a...
42
by: Santander | last post by:
how to decode HTML pages encoded like this: http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm Is there script that will do this automatically and generate normal fully...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.