* Thus wrote Merlin ([EMAIL PROTECTED]):
> Hi there,
> 
> I am running the newest php 4.x branch on a suse 9.0 apache 1.3x system
> Hardware: 1G ram
> 
> It apears to me that the system anyhow has a memory leak. While running 
> "top" on linux it shows the free memory declining steadily. After about 48h 
> the system starts to swap. Restarting apache gracefully brings it back to 
> about 140 MB free ram, thats all.

While your tracking this down you can change your
'MaxRequestsPerChild' setting in apache.


> 
> Is there a way to show all memory in use and therefore make it easy to 
> identify the problem? I realised that some scripts have missed the 
> imagedestroy function, but after I added this, the system still eats the 
> memory.

php should release any memory allocated in the scripts, except for
a some 3rd party extension's or if you're using shared memory with
in your scripts.

You can ./configure --enable-debug with php and it will detect
memory leaks, php will issue an E_WARNING if a memory detection
occurs. if this is a production server, make sure that php is
loggin to syslog and display_errors = off.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to