ID: 32002 Comment by: levi_tedder at hotmail dot com Reported By: tlamay at cte1 dot com Status: No Feedback Bug Type: Unknown/Other Function Operating System: Windows 2003 PHP Version: 4CVS-2005-02-17 New Comment:
Hi I have the same problem. My setup: Win2k Server (2 cpu) 2 GB RAM Apache 2.0.59 PHP 5.1.6 OpenSSL 0.9.8c Error message in apache log FATAL: erealloc(): Unable to allocate 1572864 bytes The exact same number of bytes is reported every 10-20 minutes, and after a day or two the apache cannot be restarted and I need to reboot the whole server. Most of my scripts are using Pear DB for database handling. I am unable to find out which script/page is causing this. Also note that I'm using the Win32DisableAcceptEx (as I guess all others are) in apache conf to get rid of slow performance and a bunch of other errors (The specified network name is no longer available). The FATAL error only appear when using Win32DisableAcceptEx. If you have any ideas, please let the PHP guys and me know it :) Previous Comments: ------------------------------------------------------------------------ [2006-10-02 03:38:27] automap at gmail dot com I also encounter this problem: [Sun Oct 01 16:52:03 2006] [notice] Apache/2.0.59 (Win32) mod_jk2/2.0.4 PHP/5.0.4 configured -- resuming normal operations [Sun Oct 01 16:52:03 2006] [notice] Server built: Jul 27 2006 15:55:03 [Sun Oct 01 16:52:03 2006] [notice] Parent: Created child process 460 [Sun Oct 01 16:52:03 2006] [notice] Disabled use of AcceptEx() WinSock2 API [Sun Oct 01 16:52:03 2006] [notice] Child 460: Child process is running [Sun Oct 01 16:52:03 2006] [notice] Child 460: Acquired the start mutex. [Sun Oct 01 16:52:03 2006] [notice] Child 460: Starting 250 worker threads. [Sun Oct 01 16:52:03 2006] [notice] Child 460: Listening on port 80. [Sun Oct 01 18:39:30 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Sun Oct 01 18:39:31 2006] [notice] Apache/2.0.59 (Win32) mod_jk2/2.0.4 PHP/5.0.4 configured -- resuming normal operations [Sun Oct 01 18:39:31 2006] [notice] Server built: Jul 27 2006 15:55:03 [Sun Oct 01 18:39:31 2006] [notice] Parent: Created child process 2272 [Sun Oct 01 18:39:31 2006] [notice] Disabled use of AcceptEx() WinSock2 API [Sun Oct 01 18:39:32 2006] [notice] Child 2272: Child process is running [Sun Oct 01 18:39:32 2006] [notice] Child 2272: Acquired the start mutex. [Sun Oct 01 18:39:32 2006] [notice] Child 2272: Starting 250 worker threads. [Sun Oct 01 18:39:32 2006] [notice] Child 2272: Listening on port 80. FATAL: erealloc(): Unable to allocate 1049288 bytes [Sun Oct 01 20:15:12 2006] [notice] Parent: child process exited with status 1 -- Restarting. Who know how to overcome it? Please send email to me: [EMAIL PROTECTED] ------------------------------------------------------------------------ [2006-07-04 13:22:05] vincent dot lepot at smile dot fr This bug happens for me since I added in httpd.conf the option Win32DisableAcceptEx (because of the number of warnings appearing). When I comment it, there are no more memory leak. So it seems to be a Apache 2 bug. ------------------------------------------------------------------------ [2006-05-29 03:20:24] jcink2k at gmail dot com I get this bug too. Is there any fix at all after all this time? ------------------------------------------------------------------------ [2006-04-14 12:23:39] php at softandem dot com I also noticed this problem FATAL: erealloc(): Unable to allocate xxxx bytes with various version of windows/php/apache : Windows 2000 server or Windows server 2003 PHP 4.4.1 (I think 4.3.2 too) Apache 1.3.19, 1.3.34, 2.0.55 The problem is very critical because I use a php module that keep sessions informations of my users in C++ objects which are lost when apache rotates. The problem does not occur at regular interval but always. The problem occurs frequently when there is a lot of query passed from Internet Explorer 6.0 on a single windows machine (example : refreshing a page lots of times) Thank you for your experiments on this issue. ------------------------------------------------------------------------ [2006-01-01 12:18:25] vsitforum at yahoo dot com I also experience this problem with my current home server windows XP Professional SP2 apache 2.0.55 PHP 4.4.1 Zend optimizer 2.6.0 Hardware is pretty decent P4 2.8 CPU 2GB of DDR400 The symtom is very much alike the very first post.I would like to know if there's anyway to fix this Thank you ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32002 -- Edit this bug report at http://bugs.php.net/?id=32002&edit=1