You are here: Re: [PHP] Freing memory resources? « PHP « IT news, forums, messages
Re: [PHP] Freing memory resources?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация