|
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]
|