ID:               32002
 Comment by:       vst at gamervision dot net
 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:

OS: Windows XP Pro and Server 2003
PHP: 4.4.4
Apache: 2.23
CPU: AMD X2 4400+
RAM: 2GB DDR

I have the same issue and consider it as CRITICAL. I tried it on many
Windows systems and the same results. If I add 'Win32DisableAcceptEx'
then I'm getting this issue. But I must use 'Win32DisableAcceptEx'
because without it I'm getting some Winsock issues. I can't upgrade to
PHP 5 because some of the parts in my side having MySQL connection
issues with PHP 5. 

PLEASE!! PLEASE FIX IT ALREADY!!


Previous Comments:
------------------------------------------------------------------------

[2006-12-21 21:00:11] csaba at ai-media dot com

Our configuration:

Windows2003 Web Edition
PHP 5.2, ZendOptimizer 3
Apache 2.2.3
Tomcat 5.5.17

To reproduce: this happens consistently on the Windows platform as long
as Win32DisableAcceptEx is enabled in the Apache httpd.conf. Tested with
Apache2.0.59, PHP 5.1.6 and PHP 5.2. We get "FATAL:  erealloc():  Unable
to allocate XXX bytes" in the Apache2 error log with 5.1.6 and no
feedback to the user (could not connect to server), with 5.2 the user
sees the same error message in the browser.

There's an open issue in the Apache2 bug list here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=34664#c8

Comment 8 is particularly interesting: one of the Apache developers say
they do not call erealloc. At this point (to me) it's not clear whether
this is a PHP or an Apache bug, but it's definitely related to both.

------------------------------------------------------------------------

[2006-12-12 23:04:20] alex_25052 at hotmail dot com

Same thing here.

Tons of FATAL:  erealloc(): Unable to allocate xxxx bytes

I config is
PHP 4.4.4
Apache 2.2.3
on Windows 2003 Xeon Dual web machine, 2Gb ram.

Sometimes apache restarts by itself, sometimes it doesn't and i have to
do it manualy

Drives me nuts... :)

------------------------------------------------------------------------

[2006-12-03 12:53:49] levi_tedder at hotmail dot com

I have installed PHP 5.2 on the server where I had this issue, and it
seems to have fixed it. No fatal for 24 hours, but I will let you know
if it reappears when traffic peeks (although traffic was not an issue
when this happened).

------------------------------------------------------------------------

[2006-10-09 06:57:44] levi_tedder at hotmail dot com

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 :)

------------------------------------------------------------------------

[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]

------------------------------------------------------------------------

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

Reply via email to