ID:               21283
 Updated by:       [EMAIL PROTECTED]
-Summary:          Apache2 & PHP4.3 leak memory when respond to requests
 Reported By:      tamagawa at osa dot att dot ne dot jp
 Status:           Open
 Bug Type:         Apache2 related
-Operating System: Windows2000(japanese version)
+Operating System: SunOS 5.9
-PHP Version:      4.3.0
+PHP Version:      4.3.1
 New Comment:

Hi Tamagawa.
we've done a big change in the apache2 <--> php interface in the
current CVS head, which may have helped with your issue.

please note that apache will grow in memory usage for a while it is
still warming up, until it peaks out (due to the way it uses pooled
memory) is it possible you are seeing this?
the way to test this is if you keep seeing a increasing memory
utilization after say a 30-40 minutes of hitting your server with a
constant load. 

regards
ian


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

[2003-02-12 23:40:29] tamagawa at osa dot att dot ne dot jp

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...)

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

[2003-02-12 23:21:06] [EMAIL PROTECTED]

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 at osa dot att dot ne dot 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] [EMAIL PROTECTED]

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 at osa dot att dot ne dot 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

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

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

Reply via email to