#37300 [Opn->WFx]: memory_limit disabled on windows

From: Date: Fri, 12 May 2006 15:41:14 +0000
Subject: #37300 [Opn->WFx]: memory_limit disabled on windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97021@lists.php.net to get a copy of this message
 ID:               37300
 Updated by:       edink@php.net
 Reported By:      astinky at lycos dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Feature/Change Request
 Operating System: Windows Server 2003
 PHP Version:      5.1.3
 New Comment:

Ok. The issue was not memory limit, and we will keep it disabled for
windows because of performance reasons. For now :)


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

[2006-05-12 15:28:11] astinky at lycos dot com

Well I tried a number of combinations of those changes and none of them
resulted in complete output from my script so I reverted them all to my
riginal settings.

However, on a lark I tried viewing the page in IE6 instead of Firefox
1.5.0.3 and voila! The script output was complete and intact!

Conclusion: Browser issue. <looks appropriately embarrased>

The webserver is no longer faulting and I'm somewhat mystified as to
why, but hey, I'll take it.

So I guess I'll try a clean Firefox 1.5.0.3 install and see if the
issue persists and if so report it to Mozilla.

Again, a thousand thanks for your patience and understanding, I've been
a big fan of php for ages, so keep up the good work!

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

[2006-05-11 22:20:31] astinky at lycos dot com

Hmmm, with this in mind I just re-read the ThreadStackSize Directive
available in Apache since 2.1

http://httpd.apache.org/docs/2.2/mod/mpm_common.html#threadstacksize

Might give that a try first.

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

[2006-05-11 21:56:31] astinky at lycos dot com

Thanks for the tip, I'll give that a try.

I already run the apache winnt mpm like so:
Win32DisableAcceptEx
ThreadsPerChild     64
MaxRequestsPerChild   10000
(stabilises it considerably)

I'll try dropping ThreadsPerChild to 50 as well.

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

[2006-05-11 21:35:51] edink@php.net

Thing that has changed between 5.0 and 5.1 is that 5.1 seems to be more
memory hungry, especially when it comes to stack.

The way to increase stack space availabe to PHP you can run:

EDITBIN /STACK:4194304  httpd.exe
in your Apache2.2\bin directory (editbin comes with vc++)

You should also decrease ThreadsPerChild to 50 from 250 in your
httpd.conf to be able to handle 4MB stack.

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

[2006-05-11 20:44:40] edink@php.net

Memory limit is not enabled in 5.2.0 (PHP runs somewhat slower when it
is enabled), but I suspect that this has nothing to do with your
problem.


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

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

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


Thread (19 messages)

« previous php.bugs (#97021) next »