Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #41028 : mod_fastcgi and php process 100% cpu
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 17th July 01:32
php-bugs
External User
 
Posts: 1
Default #41028 : mod_fastcgi and php process 100% cpu



From: vaidotas dot d at gmail dot com
Operating system: Linux 2.6.20
PHP version: 5.2.1
PHP Bug Type: CGI related
Bug description: mod_fastcgi and php process 100% cpu

Description:
------------
Apache 2.0.59 + mod_fastcgi + php 5.2.1. Sometimes php process becomes R
in process list and takes 100% cpu. At that time php page cannot be served,
instead i get 500 internal server error. Strace of that process i get:
strace -p 28973
............
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6977
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6976
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6978
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6978
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6981
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6981
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6983
...........


--
Edit bug report at http://bugs.php.net/?id=41028&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41028&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41028&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41028&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41028&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41028&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41028&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41028&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41028&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41028&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41028&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41028&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41028&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41028&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41028&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41028&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41028&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41028&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41028&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41028&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41028&r=mysqlcfg
  Reply With Quote


  sponsored links


2 17th July 01:32
External User
 
Posts: 1
Default #41028 : mod_fastcgi and php process 100% cpu



ID: 41028
Updated by: tony2001@php.net
Reported By: vaidotas dot d at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20
PHP Version: 5.2.1
New Comment:

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip


Previous Comments:
------------------------------------------------------------------------

[2007-04-09 14:59:29] vaidotas dot d at gmail dot com

Description:
------------
Apache 2.0.59 + mod_fastcgi + php 5.2.1. Sometimes php process becomes
R in process list and takes 100% cpu. At that time php page cannot be
served, instead i get 500 internal server error. Strace of that process
i get: strace -p 28973
............
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6977
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6976
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6978
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6978
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6981
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6981
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6983
...........

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=41028&edit=1
  Reply With Quote
3 17th July 10:11
php-bugs
External User
 
Posts: 1
Default #41028 : mod_fastcgi and php process 100% cpu


ID: 41028
Comment by: vaidotas at gmail dot com
Reported By: vaidotas dot d at gmail dot com
Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20
PHP Version: 5.2.1
New Comment:

php 5.2.2-dev solved the problem.


Previous Comments:
------------------------------------------------------------------------

[2007-04-09 15:03:53] tony2001@php.net

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

------------------------------------------------------------------------

[2007-04-09 14:59:29] vaidotas dot d at gmail dot com

Description:
------------
Apache 2.0.59 + mod_fastcgi + php 5.2.1. Sometimes php process becomes
R in process list and takes 100% cpu. At that time php page cannot be
served, instead i get 500 internal server error. Strace of that process
i get: strace -p 28973
............
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6977
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6976
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6978
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6978
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6981
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6981
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6983
...........

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=41028&edit=1
  Reply With Quote
4 17th July 10:11
External User
 
Posts: 1
Default #41028 : mod_fastcgi and php process 100% cpu


ID: 41028
Updated by: tony2001@php.net
Reported By: vaidotas dot d at gmail dot com
-Status: Feedback
+Status: Closed
Bug Type: CGI related
Operating System: Linux 2.6.20
PHP Version: 5.2.1
New Comment:

Great, thanks for letting us know.


Previous Comments:
------------------------------------------------------------------------

[2007-04-11 14:05:06] vaidotas at gmail dot com

php 5.2.2-dev solved the problem.

------------------------------------------------------------------------

[2007-04-09 15:03:53] tony2001@php.net

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

------------------------------------------------------------------------

[2007-04-09 14:59:29] vaidotas dot d at gmail dot com

Description:
------------
Apache 2.0.59 + mod_fastcgi + php 5.2.1. Sometimes php process becomes
R in process list and takes 100% cpu. At that time php page cannot be
served, instead i get 500 internal server error. Strace of that process
i get: strace -p 28973
............
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6977
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6976
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6978
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6978
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6981
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6981
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD,
child_tidptr=0xb793c0c8) = 6983
...........

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=41028&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666