ID: 41615 Comment by: rmgraci at yahoo dot com Reported By: sms at inbox dot ru Status: No Feedback Bug Type: Unknown/Other Function Operating System: Windows 2000 SP4 PHP Version: 5.2.3 New Comment:
I am also seeing this with php-5.2.3-Win32. I'm using Apache 2.2.4 and it fails when my script initializes w/ Zend Framework 1.1.0 - Fatal error: Out of memory (allocated 786432) (tried to allocate 4320 bytes) The line it fails on changes, but it always fails at 786432. My memory_limit is set to 128M. Previous Comments: ------------------------------------------------------------------------ [2007-08-02 10:25:56] tyb at egon dot gyaloglo dot hu I have the same problem. PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 393216 bytes) First time it happens when running a PHPMyAdmin script. After that I cannot start any php sessions until I restart Apache. Environment: Windows Server 2003 SP1 Apache 2.0.58, binary PHP 5.2.1 ------------------------------------------------------------------------ [2007-06-21 12:19:55] pepegsay at hotmail dot com I'm not sure if I'm supposed to add this "how I solved this" note but here goes: I solved this error by reducing the Apache ThreadsPerChild. We had threadsperchild rather high at 250 threads, and if you do the math: 64megs X 250 threads you would require 16 gigs of ram if: 1. Apache never restarted on its own 2. Eventually each thread was used for your largest process Either way our modest 2 gigs was being eaten up. Whereas PHP used to either no throw an error or not fault it now says "out of memory". We have reduced ThreadsPerChild to a level that makes sense when you multiply memory_limit x ThreadsPerChild, with a touch of overhead since our processes rarely max out or memory limit, and are no longer seeing this problem. ------------------------------------------------------------------------ [2007-06-19 23:45:13] jetmah at gmail dot com I have the same error in php-5.2.3-Win32, too. ------------------------------------------------------------------------ [2007-06-19 01:50:34] jarit at qq dot com I have the some proplem too. I set memory_limit to 1024M, but it's no use. I use: php 5.2.3-win32 apache 2.2.0 why does the error "out of memory" happen? thinks. ------------------------------------------------------------------------ [2007-06-15 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ 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/41615 -- Edit this bug report at http://bugs.php.net/?id=41615&edit=1