php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28398 Random pauses in execution
Submitted: 2004-05-14 14:21 UTC Modified: 2004-05-14 14:59 UTC
From: bheam at online dot no Assigned:
Status: Not a bug Package: Performance problem
PHP Version: 4.3.6 OS: linux fedora core 1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bheam at online dot no
New email:
PHP Version: OS:

 

 [2004-05-14 14:21 UTC] bheam at online dot no
Description:
------------
I'm developing a publishing tool with php, but am having trouble after i switched server.

Old configuration:
P3 800mhz
512mb ram

New configuration
p4 2.8 x 2
512mb ram
s-ata disks, raid

both systems run:
php-4.3.3
apache-2.0.47
mysql-4.0.13 (not relevant)

also upgraded to php-4.3.6 on p4 without any change.

On the new system, the php code seems to be pausing at random places (have been inserting error_log calls at certain points in code) for example it suddenly spent 4 seconds between 2 error_log that only had a echo() command in between.

I made a simple loop that echo("."), and it's smooth on the p3, but it's choppy and pauses every now and then on the 2xP4. i also made a similar program in c++ and it runs smooth (to prove it's not network)

i've executed the .php with php -q, proving it's not apache.

Reproduce code:
---------------
for ($cnt = 0; $cnt < 30000; $cnt++) {
         for ($ca = 0;$ca < 100; $ca++) {
                $a = $a * 3;
                $a = $a + 1;
                $a = $a / 3;
         }
         echo(".");
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-14 14:35 UTC] bheam at online dot no
The reproduction code might not be relevant since there seems to be some weird type of output buffering on the box. (might be the sshd)

another thing to note is that the cpu usage is usually around 5% when said problems are occuring. (it really seems like it's processing a sleep(5) :p )

delays vary from 0.1sec to 5sec (even more a couple times)
 [2004-05-14 14:59 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Sounds like a configuration issue on your end, can't 
reproduce. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 22:01:29 2024 UTC