ID: 31915 Comment by: php at thenetsnake dot com Reported By: map at infinitum dot ch Status: Feedback Bug Type: Session related Operating System: FreeBSD 5.3 stable PHP Version: 5.0.3 New Comment:
Same problem for me, W2k Server, IIS5, PHP5.0.X CSV... the following code is included on all pages (nothing but functions declarations before) session_name("CSID"); if (isset($_GET["csid"])) { $sessid = $_GET["csid"]; session_id($sessid); } session_start(); $_SESSION['compteur']++; Approx. 20 times/day on a 25k PV/day site, I have the following message in the logs: [11-Feb-2005 15:46:57] PHP Fatal error: Maximum execution time of 30 seconds exceeded in c:\Inetpub\wwwroot\bel_header.php on line 200 (line 200 = the session_start(); ) Previous Comments: ------------------------------------------------------------------------ [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=31915&edit=1