|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-30 01:30 UTC] tamagawa at osa dot att dot ne dot jp
I set up PHP4.3.0(DLL) & Apache2.0.43. Each time client browsers access to foo.php file, PHP&Apache leak certain amout of memory. I put a file named foo.php which contains just 'aaaa' in htdocs directory, and I access that file from mozilla1.2. When i repeatedly reload foo.php, amout memory that Apache2 uses grows(seems about 100 bytes/req). I confirmed the growth with Window's task manager. Apache's http.conf is 'as is' distributed and PHP4.3's ini is same as ini-recommended. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 17:00:01 2025 UTC |
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. tamagawaSimply 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...)