|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-12 21:10 UTC] sniper@php.net
[2005-12-12 23:33 UTC] chris at lodesys dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 02:00:01 2025 UTC |
Description: ------------ When running 2 or more requests simultaneously on my 850 MHz laptop, including "class MyException extends Exception{}" to a simple Hello World script causes Apache to crash randomly. The setup is a stand alone 850 MHz laptop running Windows 2000, Apache/1.3.34, PHP/5.1.1, and Apache's JMeter. Apache is configured with ThreadsPerChild = 50 and PHP loaded as a module (LoadModule php5_module c:/php/php5apache.dll). Launching Apache's JMeter, I accessed the test script using single or multiple threads, no timing pauses, and enough loops to drive the CPU load to 100% (e.g., 1 thread/600 loops, 2 threads/300 loops, and 30 threads/20 loops). Reproduce code: --------------- <?php class MyException extends Exception { } print("Hello World\n"); ?> Expected result: ---------------- Script should run without problem when accessed using 1 or multiple threads. Actual result: -------------- Running single threaded access, there were no problems. When accessed using multiple threads, there were consistent random failures of Apache. For example, usually see around 7 crashes while running 600 requests with 30 threads. Dr. Watson reports them as Exception number: c0000005 (access violation) or occasionally Exception number: 000006a6 (). Removing "class MyException extends Exception{}" from the script eliminated the multi-thread crashing problem. All thread settings (1, 2 & 30) would run to completion without problems.