From:             broadmind at magicn dot com
Operating system: windows 2000 server
PHP version:      5CVS-2005-12-01 (snap)
PHP Bug Type:     MySQL related
Bug description:  FATAL:  erealloc():  Unable to allocate 24576 bytes

Description:
------------
My server environment is,

CPU : AMD Opteron 240 x2 (2 cpu)
RAM : 2 GB
Apache 1.3.34
Mysql 5.0.16
PHP : 5.1.2-dev Snap stable version.

In error logs, I could find the following error message frequently.

FATAL:  erealloc():  Unable to allocate 24576 bytes

So, opening windows task manager, I have monitored the memory usage of
Apache server.
I found this log is happen when it is over 240MB duing to heavily access
to mysql through a PHP page.
Because the memory size of my server is 2GB, it is nonsense to say that
this problem is duing to the lack of memory.
In my guess, there may be a memory leak in the memory manager.

Actual result:
--------------
FATAL:  erealloc():  Unable to allocate 24576 bytes

the above log is leaved in error.log file and Apache server is restarted,
causing the lose of POST data or "page not found".


-- 
Edit bug report at http://bugs.php.net/?id=35506&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35506&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35506&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35506&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35506&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35506&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35506&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35506&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35506&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35506&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35506&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35506&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35506&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35506&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35506&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35506&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35506&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35506&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35506&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35506&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35506&r=mysqlcfg

Reply via email to