ID:               40701
 Updated by:       [EMAIL PROTECTED]
 Reported By:      michaeldaly at magma dot ca
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Win XP Pro
 PHP Version:      5.2.2
 New Comment:

>PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting.
It _does_ report 8Mb - "PHP Fatal error:  Out of memory (allocated
8388608) (tried to allocate 393216 bytes)".

>This is reported in phpinfo.php.
memory_limit can be changed per-virtualhost, per-directory and
per-script.
Therefore phpinfo() might show you 512Mb, but the real script might use
different value.

>Is there a way for me to capture some kind of debug information 
>that can help you? 
Yes, please search for "memory_limit" in your scripts,.htacess and
httpd.conf.


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

[2007-03-06 20:54:33] michaeldaly at magma dot ca

Is there a way for me to capture some kind of debug information that
can help you?  I downloaded the debug files along with the latest snap
and they were just PDB files and I don't know what to do with them.

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

[2007-03-06 18:10:37] [EMAIL PROTECTED]

Cannot reproduce anything like that.

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

[2007-03-06 18:02:56] michaeldaly at magma dot ca

I can find no other mechanism for setting a memory limit.

PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting.  This is reported in phpinfo.php.

This allocation error is occurring at many different allocation levels.
 For example, the following occurred yesterday.  The first column is the
allocated amount, the second is the amount attempted and the third is
the number of times it occurred.

Allocated   Add    Freq
1048576      6144  1
1835008     98304  2
2359296     98304  2
2883584     24576  3
3407872     24576  2
3670016     24576  2
4456448      6144  1
5242880    393216  1
5505024     98304  1
5767168   1572864  3
5767168     98304  1
6029312    393216  1
6291456   1572864  2
6291456     98304  1
6553600   1572864  1
6553600     24576  1
6553600    393216  8
6815744    393216  4
7077888   1572864 11
7340032   1572864  5
7602176   1572864  1
7602176    393216  1
 786432     24576  4
 786432      6144  3
9175040   1572864  2

All these values are well below the 512MB limit.

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

[2007-03-05 10:02:55] [EMAIL PROTECTED]

Make sure you didn't set the memory limit in any other way (windows
registry, httpd.conf, htaccess etc.).
If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
trust PHP.

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

[2007-03-04 20:21:23] michaeldaly at magma dot ca

Additional thought - may be unrelated.

On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
had another, possibly related.

There was a frequent bug that I fixed with Win32DisableAcceptEx in
httpd.conf.  This then introduced a memory allocation bug in Apache. 
Apparently, that situation was relatively common on Windows machines
with not a lot of RAM - mine was 512MB.

With current server, I have 2GB Ram and the Apache allocation bug
hasn't shown up.  However, now PHP has allocation errors.  Is it
possible one was "hiding" the other?  Is it possible the two situations
are related?

I only mention this in the hope it might twig one of you PHP wizards.

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

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/40701

-- 
Edit this bug report at http://bugs.php.net/?id=40701&edit=1

Reply via email to