ID:               41615
 Comment by:       pepegsay at hotmail 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'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.


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

[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".

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

[2007-06-08 21:47:21] pepegsay at hotmail dot com

I think that this is a bug which requires more than a simple script to
reproduce. I am receiving similar results on our, primarily, phpBB site
after upgrading to 5.2.2 today. The sits is running on Windows 2003 and
Apache.

 Out of memory (allocated 1048576) (tried to allocate 393216 bytes) 
 Out of memory (allocated 1048576) (tried to allocate 393216 bytes) 
 Out of memory (allocated 1048576) (tried to allocate 393216 bytes) 
 Out of memory (allocated 1048576) (tried to allocate 393216 bytes)
 Out of memory (allocated 786432) (tried to allocate 393216 bytes) 
 Out of memory (allocated 1310720) (tried to allocate 393216 bytes)

Obviously, I do not have a random amount allocated to memory_limit, and
a ini_get returns the real value which is 32M. We received similar
errors in php 5.1.4 but they were only logged in the Apache logs.

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

[2007-06-07 08:12:31] [EMAIL PROTECTED]

Sorry, we can't fix something we can't reproduce.

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

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

Reply via email to