#21283 [Fbk->Opn]: Apache2 & PHP4.3 leak memory when respond to requests
| From: | tamagawa at osa dot att dot ne dot jp | Date: | Thu, 13 Feb 2003 05:40:29 +0000 |
| Subject: | #21283 [Fbk->Opn]: Apache2 & PHP4.3 leak memory when respond to requests | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32975@lists.php.net to get a copy of this message | ||
ID: 21283
User updated by: tamagawa@osa.att.ne.jp
Reported By: tamagawa@osa.att.ne.jp
-Status: Feedback
+Status: Open
Bug Type: Apache2 related
Operating System: Windows2000(japanese version)
PHP Version: 4.3.0
New Comment:
Simply doing
- h.putrequest('GET', '/test.php')
+ h.putrequest('GET', '/index.html.en')
stops leaking.
(Hope this is the right way to reply my own report...)
Previous Comments:
------------------------------------------------------------------------
[2003-02-12 23:21:06] sniper@php.net
Hmm...are you sure it's not just apache2 that leaks..?
Try without PHP installed..?
(and please don't use the 'Add Comment' when you reply to your own
report!)
------------------------------------------------------------------------
[2003-02-12 22:54:33] tamagawa@osa.att.ne.jp
Sorry to say that it still happens. tested under winXP.
Amount of memory that leaks seems same as before.
tamagawa
------------------------------------------------------------------------
[2003-02-12 21:45:43] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-02-12 19:31:24] tamagawa@osa.att.ne.jp
I checked with Apache2.0.44+PHP4.3.0 on WinXP home and it still
happens.
Here is the Python2.1 script I used for the test.
******************************************
import httplib, time
h=httplib.HTTP('127.0.0.1')
res={}
i=1
for i in range(6000):
h.putrequest('GET', '/test.php')
h.endheaders()
code, msg, headers = h.getreply()
f = h.getfile()
data=f.read()
f.close()
print i, code
******************************************
test.php contains only 'aaaaa'.
I'll check bugzilla on apache's website anyway.
tamagawa
------------------------------------------------------------------------
[2003-02-12 16:33:33] just_another_stupid_name@yahoo.com
according to them, no. i will veryify this tonight and report back.
------------------------------------------------------------------------
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/21283
--
Edit this bug report at http://bugs.php.net/?id=21283&edit=1