| 
 Posted by Jochem Maas on 06/16/05 14:35 
Gustav Wiberg wrote: 
> Hi there! 
>  
> I have a script that runs about 10 minutes... Localy on my computer  
> (Windows XP 2.6Ghz, Apache) the computer hangs a little now and then  
> when the script is running. Is there any good way of releasing more  
> memory while the script is running? The script could take 20 minutes,  
> it's not a big matter how long the script takes. (As long as the server  
> can do other things at the same time) 
>  
> (In production environment, the php-script is on Apache and Linux (if it  
> matters)) 
 
maybe use nice to stop your script hogging resources. 
 
$> nice --adjustment=19 php yourscript.php 
 
check the manpage for more info: 
 
$> man nice 
 
>  
> Best regards 
> Gustav Wiberg 
> @varupiraten.se 
>
 
  
Navigation:
[Reply to this message] 
 |