|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-31 01:55 UTC] jlim at natsoft dot com dot my
When stress testing my web server with ab -n5000 -c10 <url> after about 1000-1500 requests the child processes start to fail. In my apache error_log I see many entries like the following: [Fri Dec 28 19:50:06 2001] [notice] child pid 14215 exit signal Segmentation fault (11) If I repeat the "ab" test several times, eventually Apache will hang and I have to restart the web server. Here are the results: This is ApacheBench, Version 1.3 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/ Benchmarking semut (be patient)... Server Software: Apache/1.3.20 Server Hostname: semut Server Port: 80 Document Path: /juris/case.php fbba51299f Document Length: 85383 bytes Concurrency Level: 10 Time taken for tests: 1638.945 seconds Complete requests: 5000 Failed requests: 3446 (Connect: 0, Length: 3446, Exceptions: 0) Total transferred: 429091301 bytes HTML transferred: 427029653 bytes Requests per second: 3.05 Transfer rate: 261.81 kb/s received Connnection Times (ms) min avg max Connect: 0 9 197 Processing: 1692 3263 11353 Total: 1692 3272 11550 When I switch from "mm" to "files" everything works fine. I have a suspicion that the bug is related to the fact that I am running on an SMP processor. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
A simple script that reproduces the problem with "mm". Works fine for a while until "mm" breaks under stress: <?php error_reporting(E_ALL); $abc1 = ''; for ($i=0;$i<20;$i++) session_register('abc'.$i); @$_SESSION['abc1'] += 2; print "<pre>$abc1\n\n"; ?>I know this bug has been closed for two years now but I'm experiencing the same issue with the following configuration: -RH 7.3 -Apache 1.3.23 -PHP 4.3.4 Configure command: './configure' '--with-apxs' '--with-interbase' '--enable-track-vars' '--with-mm' After a while, I get seg fault unless I remove the line: ini_set('session.save_handler', 'mm') from my code. Is there something else I'm missing or should this bug be re-opened. Thanks, Dave