#31915 [Opn-Fbk]: session_start randomly hangs

2005-04-12 Thread sniper
 ID:   31915
 Updated by:   [EMAIL PROTECTED]
 Reported By:  map at infinitum dot ch
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 5.3 stable
 PHP Version:  5.0.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:


[2005-02-11 18:20:48] map at infinitum dot ch

I can only reproduce this behaviour in the production site. There are
like 5 different page types that have a different initialization but
basically we do some #includes and assignments and then comes the
following code:

session_cache_limiter('none');
@session_start ();

There are other places where I just use 'session_start' without
'session_cache_limiter'.



[2005-02-10 21:28:34] [EMAIL PROTECTED]

It would be good if you provide a reproduce script or at least some
info on how to reproduce this issue.
Just saying that something is wrong doesn't help much, as you may
guess.

Have you already tried latest CVS snapshot, btw ?



[2005-02-10 15:52:17] map at infinitum dot ch

Description:

On a production site using PHP5 5.0.3 with Apache 1.3.33 we see random
session_start hangs. It does NOT happen always on the same page, with
the same client, the same frequency or unter the same load.
If it happens the process eats up all CPU time util it reaches the
'max_execution_time'. It then leaves a trace in the error log saying:
PHP Fatal error:  Maximum execution time of 15 seconds exceeded in XXX
on line XXX. There are always other pages and lines.
I already tried a lot of stuff to see if there is any influence like
using 'session_destroy'. I do not use any special session parameters.
The actual parameters are:

[Session]
session.save_handler = files
session.save_path = /home/teviaqui/session
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0

I am also a developer and might help to debug the code but I need some
advice where to lock at!

Reproduce code:
---
session_start ();

Expected result:

I would like to see no processes eating up all the CPU time of our
sever.

Actual result:
--
The the moment I have several httpd processes hanging at the same time
eating up all CPU time. There are about 120 users browsing the site.
At the moment it happens like 30 times every hour!





-- 
Edit this bug report at http://bugs.php.net/?id=31915edit=1


#31915 [Opn-Fbk]: session_start randomly hangs

2005-02-10 Thread tony2001
 ID:   31915
 Updated by:   [EMAIL PROTECTED]
 Reported By:  map at infinitum dot ch
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 5.3 stable
 PHP Version:  5.0.3
 New Comment:

It would be good if you provide a reproduce script or at least some
info on how to reproduce this issue.
Just saying that something is wrong doesn't help much, as you may
guess.

Have you already tried latest CVS snapshot, btw ?


Previous Comments:


[2005-02-10 15:52:17] map at infinitum dot ch

Description:

On a production site using PHP5 5.0.3 with Apache 1.3.33 we see random
session_start hangs. It does NOT happen always on the same page, with
the same client, the same frequency or unter the same load.
If it happens the process eats up all CPU time util it reaches the
'max_execution_time'. It then leaves a trace in the error log saying:
PHP Fatal error:  Maximum execution time of 15 seconds exceeded in XXX
on line XXX. There are always other pages and lines.
I already tried a lot of stuff to see if there is any influence like
using 'session_destroy'. I do not use any special session parameters.
The actual parameters are:

[Session]
session.save_handler = files
session.save_path = /home/teviaqui/session
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0

I am also a developer and might help to debug the code but I need some
advice where to lock at!

Reproduce code:
---
session_start ();

Expected result:

I would like to see no processes eating up all the CPU time of our
sever.

Actual result:
--
The the moment I have several httpd processes hanging at the same time
eating up all CPU time. There are about 120 users browsing the site.
At the moment it happens like 30 times every hour!





-- 
Edit this bug report at http://bugs.php.net/?id=31915edit=1