473,800 Members | 3,056 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1654
On 6 Sep 2006 03:13:39 -0700, "Skrol29" <sk*****@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 :: an**@andyh.co.u k :: 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_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
--
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
3356
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 External Data > Link Tables > select ODBC Databases facility to link to our back-end MySQL Server. On both our machines the tables appear in the window very quickly and if we hit 'Select All', all the tables start loading really quickly into our...
7
26971
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 long time. Then about a month ago there main server that hosted all the .mdb files crashed. So they restored everything to a new server (I believe 2003 server). Everything was fine for 2 weeks, then one morning they came in and the queries were...
2
1382
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 project at home on my laptop, the pages take upwards of 100+ seconds to load. I will try to give all the pertinent info below. I think it is probably a security issue which is why I am cross posting. My laptop is acting as my web server. I am...
3
2384
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 two desktop PCs with Windows XP Corporate ed, and one Laptop with Windows 2000 Professional. The IIS is installed on all of them. When running the ASP.NET applications from localhost, they run very smoothly. When the application is uploaded to the...
3
2091
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: #--------------------------------------------------------------------------- # RESOURCE USAGE (except WAL) #---------------------------------------------------------------------------
22
3539
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 up a debugger to display the current location each loop and let it run. It did reach completion, but it took 20 minutes. I replaced the calls to wcschr in my program with calls to this substitute: static WCHAR* altchr(register WCHAR* s,...
3
6540
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 time for all users is unacceptable). It has been working fine for many months, for all users. Recently, for one user, the response time has been unacceptable with a form taking 3-4 minutes to load that use to only take a few seconds.
0
1231
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 Samba network printer, it slows down to a crawl. With a Windows server network printer, it takes about 10 seconds to render 100 pages. With a Samba network printer, it takes over 5 minutes! I can see that the preview control is generating
42
8969
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 readable HTML? Santander
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10269
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4148
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.