ID: 32002 Updated by: [EMAIL PROTECTED] Reported By: tlamay at cte1 dot com -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: Windows 2003 PHP Version: 4.3.10 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-02-16 19:10:19] tlamay at cte1 dot com Description: ------------ This problem occurs with PHP 4.3.9 and 4.3.10 and CVS versions of 4.3.11. Below is a snippet from Apache 2.0.52 error log. This restarting problem does not occur with 4.3.6 and 4.3.7. I have not fully tested 4.3.8. The restarts occur at regular intervals, and the least frequently with 4.3.10 (averaging every 30-45m). The Apache child thread restarts causing all web clients to disconnect (I guess this issue is particularly bad on Windows since there's only one child?) This can cause my ecommerce customers to loose POST data or mess up their orders in other ways, and at least cause time out issues on pages. I would love to know how to backtrace on Windows but I cant seem to find instructions. PHP error log isnt showing me anything relevant to the problem. This is on a live system so Im not sure what code is causing this. The server primarily runs osCommerce and vBulletin 3, all pages are pretty much PHP. I've tried increasing the memory allocation for PHP scripts from 8m to 40m, but this hasn't had an effect. Im willing to try other configurations as long as it doesn't disrupt my live websites too badly, to see where the bug might be. In regards to the system, it's currently running 1G of memory and is only using about half that at any given time. I will be upgrading the server to 3G of memory, however, Im not sure the physical memory is a limitation, apart from a memory leak somewhere. Thanks Wed Feb 16 11:20:58 2005] [notice] Parent: Created child process 5376 [Wed Feb 16 11:20:58 2005] [notice] Disabled use of AcceptEx() WinSock2 API [Wed Feb 16 11:21:06 2005] [notice] Child 5376: Child process is running [Wed Feb 16 11:21:06 2005] [notice] Child 5376: Acquired the start mutex. [Wed Feb 16 11:21:06 2005] [notice] Child 5376: Starting 750 worker threads. [Wed Feb 16 11:21:06 2005] [notice] Child 5376: Listening on port 443. [Wed Feb 16 11:21:06 2005] [notice] Child 5376: Listening on port 443. [Wed Feb 16 11:21:06 2005] [notice] Child 5376: Listening on port 80. [Wed Feb 16 11:21:06 2005] [notice] Child 5376: Listening on port 80. FATAL: erealloc(): Unable to allocate 22528 bytes [Wed Feb 16 11:42:05 2005] [notice] Parent: child process exited with status 1 -- Restarting. [Wed Feb 16 11:42:07 2005] [notice] Parent: Created child process 388 [Wed Feb 16 11:42:07 2005] [notice] Disabled use of AcceptEx() WinSock2 API [Wed Feb 16 11:42:14 2005] [notice] Child 388: Child process is running [Wed Feb 16 11:42:14 2005] [notice] Child 388: Acquired the start mutex. [Wed Feb 16 11:42:14 2005] [notice] Child 388: Starting 750 worker threads. [Wed Feb 16 11:42:14 2005] [notice] Child 388: Listening on port 443. [Wed Feb 16 11:42:14 2005] [notice] Child 388: Listening on port 443. [Wed Feb 16 11:42:14 2005] [notice] Child 388: Listening on port 80. [Wed Feb 16 11:42:14 2005] [notice] Child 388: Listening on port 80. FATAL: erealloc(): Unable to allocate 22528 bytes [Wed Feb 16 12:26:05 2005] [notice] Parent: child process exited with status 1 -- Restarting. [Wed Feb 16 12:26:06 2005] [notice] Parent: Created child process 6032 [Wed Feb 16 12:26:06 2005] [notice] Disabled use of AcceptEx() WinSock2 API [Wed Feb 16 12:26:14 2005] [notice] Child 6032: Child process is running [Wed Feb 16 12:26:14 2005] [notice] Child 6032: Acquired the start mutex. [Wed Feb 16 12:26:14 2005] [notice] Child 6032: Starting 750 worker threads. [Wed Feb 16 12:26:14 2005] [notice] Child 6032: Listening on port 443. [Wed Feb 16 12:26:14 2005] [notice] Child 6032: Listening on port 443. [Wed Feb 16 12:26:14 2005] [notice] Child 6032: Listening on port 80. [Wed Feb 16 12:26:15 2005] [notice] Child 6032: Listening on port 80. Terminating on signal SIGTERM(15) [Wed Feb 16 12:33:19 2005] [notice] Parent: Created child process 2044 [Wed Feb 16 12:33:19 2005] [notice] Disabled use of AcceptEx() WinSock2 API [Wed Feb 16 12:33:26 2005] [notice] Child 2044: Child process is running [Wed Feb 16 12:33:26 2005] [notice] Child 2044: Acquired the start mutex. [Wed Feb 16 12:33:26 2005] [notice] Child 2044: Starting 750 worker threads. [Wed Feb 16 12:33:26 2005] [notice] Child 2044: Listening on port 443. [Wed Feb 16 12:33:26 2005] [notice] Child 2044: Listening on port 443. [Wed Feb 16 12:33:26 2005] [notice] Child 2044: Listening on port 80. [Wed Feb 16 12:33:26 2005] [notice] Child 2044: Listening on port 80. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32002&edit=1