You are here: Re: Memory leak occurs when exec() function is used on Windows platform « PHP Programming Language « IT news, forums, messages
Re: Memory leak occurs when exec() function is used on Windows platform

Posted by Aaron Saray on 09/09/07 14:05

On Sep 8, 11:37 am, melma...@gmail.com wrote:
> Hi
>
> I have a big problem with shell commands execution via PHP.
> I have written a very short PHP script ilustrating the problem:
>
> <?php
>
> for($i=0;$i<1000;$i++)
> {
> exec("test.bat");
>
> }
>
> ?>
>
> test.bat is just an empty file.
>
> This script causes about 10 MB memory leak. It can be observed
> by usage of performance system monitor. This problems occurs in
> all available enviroments:
> - IIS Webserver.
> - Apache webserver
> - PHP command line interpreter
>
> Memory leak is observable only on Windows platform
> (tested on Windows XP). On Linux everything works OK.
>
> Does someone know how to solve this problem? Any help appreciated
>
> Best regards
> Melmack

Does it leak memory for every type of system call (like passthru) or
just for exec() ?

 

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

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