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
------------ 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
*** 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
--
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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)
#---------------------------------------------------------------------------
| |
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,...
|
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.
|
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
|
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
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |