Skip to content
WJunction - Webmaster Forum

Apache leaking memory [XP]

Status
Not open for further replies.
Hi !
My server is using xp os and there is no doubt that the apache leaks memory with my PHP (using as module not cgi) .
The leak is strange - if one guest opens the page the mem using of apache process goes 3++ MB and then drops them,which is normal.But if 2 or more guests want to open the page in same time the memory is increased with 500k after cleaing/droping the memory,which i suppose is pure memory leak. Anyone can tell why ?

Edit
I have php5apache2.dll so apache is 2.0v and php is 5.2.14.14v

Also i've tested with apache 2.2 and newest php,but still the problem stays.

@dermechove - how to test on localhost when only i may load the page (and the problem is if 2 or more users try to load the page in same time).
Btw i am using get_headers function to get remote filesize (content-length) and checking if content-type has 'image'(which means that the image exists) for 10 or more images per page as i told already. It really slows down the script by 6-7 seconds.And i think that the major memory leak might be from get_headers ?

Edit 2
Btw sometimes it cannot even load the page by no reason (loading just few bytes and stops) and after 1-2 refreshes it loads it :| . Apache official site says that this is from the small amount of RAM,but i have 512 MB DDR2 with 1,8 Ghz Althon CPU.
 

8 comments

Hmm what about cache images problem by using : <img src=thumb.php?src=blabla.jpg>
As they are 10 or more per page...
If that is the problem i can show you the thumb.php code actually.
 
well what I wanted to say is that it might php is the one causing the leak and not apache.Also it might be some random program installed on the xp machine.
try testing the scipt on your localhost(keep the same configuration as in your host) and tell us if it give the same result.
 
Status
Not open for further replies.

About the author

Porsche_maniak
Active Member · Joined
Auto racing,Porsche,Web Development
283
Messages
0
Reactions
16
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom