473,401 Members | 2,125 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,401 software developers and data experts.

bad performance with php 5.2.0

Hi!

I'm running OmniHTTPd/2.10 with php on a Win2k SP4 machine with various php applications (for
example phpMyAdmin and cacti).
Until now I was using php 5.0.4 without problems. I updated to php 5.2.0 and now all the php
applications are running *very* slow.
A cacti page with some graphs on it took 16 sec to show up completly with php 5.0.4 now takes 50 sec
with php 5.2.0. Same with other php scipts.
I monitored php with the taskman. With php 5.0.4 some php-cgi.exe show up, using up to 99% cpu never
going to 0%. With php 5.2.0 the same php-cgi.exe show up, but using only 30% to 40% cpu, dropping
periodically to 0% cpu, then back to 30%, then back to 0% and so on.
Any hints how to solve this problem?

Best regards, Sickboy.
Jan 21 '07 #1
5 1465
Have you tried running Apache web server instead? Looks to me that it's
been awhile since OmniHTTPd updated anything...

If interested I'll send you a few helpful links.

Regards

T

On Jan 21, 4:07 pm, Sebastian 'Sickboy' Keichel
<sebastian.keic...@stud.tu-ilmenau.dewrote:
Hi!

I'm running OmniHTTPd/2.10 with php on a Win2k SP4 machine with various php applications (for
example phpMyAdmin and cacti).
Until now I was using php 5.0.4 without problems. I updated to php 5.2.0 and now all the php
applications are running *very* slow.
A cacti page with some graphs on it took 16 sec to show up completly with php 5.0.4 now takes 50 sec
with php 5.2.0. Same with other php scipts.
I monitored php with the taskman. With php 5.0.4 some php-cgi.exe show up, using up to 99% cpu never
going to 0%. With php 5.2.0 the same php-cgi.exe show up, but using only 30% to 40% cpu, dropping
periodically to 0% cpu, then back to 30%, then back to 0% and so on.
Any hints how to solve this problem?

Best regards, Sickboy.
Jan 22 '07 #2
<nt*******@gmail.comwrote:
: Have you tried running Apache web server instead? Looks to me
: that it's been awhile since OmniHTTPd updated anything...
:
: If interested I'll send you a few helpful links.

I started up PHP 5.2 on Apache and noticed it is slightly slower
than the latest version of PHP 4.x (Apache 1.3.37/Windows NT).

It might perhaps have to do with anything in the PHP.INI file?

I've also run into another problem which I'm going to ask for some
help under a new thread.

--
Jim Carlock
Post replies to the group.
Jan 22 '07 #3
On Jan 22, 1:48 pm, "Jim Carlock" <anonym...@127.0.0.1wrote:
<ntvtho...@gmail.comwrote:: Have you tried running Apache web server instead? Looks to me
: that it's been awhile since OmniHTTPd updated anything...
:
: If interested I'll send you a few helpful links.

I started up PHP 5.2 on Apache and noticed it is slightly slower
than the latest version of PHP 4.x (Apache 1.3.37/Windows NT).

It might perhaps have to do with anything in the PHP.INI file?

I've also run into another problem which I'm going to ask for some
help under a new thread.

--
Jim Carlock
Post replies to the group.
Are you running PHP as an Apache module, or as a CGI?

Jan 24 '07 #4
On Jan 22, 1:48 pm, "Jim Carlock" posted...
: I started up PHP 5.2 on Apache and noticed it is slightly slower
: than the latest version of PHP 4.x (Apache 1.3.37/Windows NT).
:
: It might perhaps have to do with anything in the PHP.INI file?
"Curtis" asked:
: Are you running PHP as an Apache module, or as a CGI?

It's loaded as a module.

<httpd.conf>

# Load the php 4 module
# LoadModule php4_module "E:/php4/php4apache.dll"
# Load the php 5 module
LoadModule php5_module "E:/php5/php5apache.dll"
# ... more stuff ...
# [Whenever changing LoadModules above, update items below!]
ClearModuleList
# ... bunch of AddModule stuff ...

# Add the mod_php4.c
# AddModule mod_php4.c
AddModule mod_php5.c

</httpd.conf>

Apache seems to start up and load just as quickly as it used to,
but I noticed a slightly longer delay in presenting PHP pages under
PHP 5 (not much but enough). But perhaps it's caused because of
added extensions in PHP 5. I installed PHP 5 to get to php_pdo.dll,
php_pdo_sqlite.dll and php_sqlite.dll extensions (?).

--
Jim Carlock
Post replies to the group.
Jan 24 '07 #5
nt*******@gmail.com schrieb:
Have you tried running Apache web server instead?
Not yet. But I think I will.
Looks to me that it's
been awhile since OmniHTTPd updated anything...
Yeah, using this installation since php 4.
If interested I'll send you a few helpful links.
Thanks, but it's not necessary. I already installed apache on some linux and windows machines.

Best regards, Sickboy.
Jan 25 '07 #6

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

Similar topics

25
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
12
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
12
by: serge | last post by:
I have an SP that is big, huge, 700-800 lines. I am not an expert but I need to figure out every possible way that I can improve the performance speed of this SP. In the next couple of weeks I...
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
7
by: Michael D. Ober | last post by:
When calling Enqueue, the internal array may need to be reallocated. My question is by how much? In the old MFC array classes, you could tell MFC how many additional elements to add to the array...
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...
0
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,...

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.