You are here: Re: memory allocation php « All PHP « IT news, forums, messages
Re: memory allocation php

Posted by J.O. Aho on 05/15/07 16:52

Zoe Brown wrote:
> I have a php script which is resizing some images. To get this to run I have
> has to increase the memory allocation via php.ini. This all works fine and
> there are no problems.
>
> My client is totally convinced that this is going to cause issues with
> "processing power" on the server. I have been asked to log memory usage
> before and after my code is executed to confirm that there are no memory
> leaks.

Much depends on what OS you are using, say Linux which caches everything (and
releases those caches when needed), if measuring the memory usage with the
wrong tool, then it will look like you have a memory leak.

If the script uses gd built into PHP, it won't make any difference, if there
is a leak, then there is a leak in the PHP itself., in which case they should
upgrade to the latest stable version.

--

//Aho

 

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

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