> CF memory usage is also influenced by other things. For
> example, if you run a template like
>
> <cfscript>
> for (i = 0; i lt 1000000; i = i + 1)
> ;
> </cfscript>
>
> ColdFusion will gobble up a huge amount of memory without
> ever releasing it.
In my experience, this is partially true. The first time you run the script,
it will consume the amount of memory needed to run the script. In CF 4.5.1,
it will retain this memory rather than releasing it back to the OS. However,
if you rerun the script, and the memory previously acquired isn't being used
to process other scripts, CF won't consume additional memory.
Thus, in a stable environment, the CF service memory usage should reach a
plateau, which represents the amount of memory needed during peak usage
periods. The key words there, of course, are "in a stable environment". The
biggest cause of instability I've seen are database drivers, like MDAC and
the Oracle client. I've yet to encounter a true "memory leak" in CF, but I
can say that if you have any problems with either code or third-party
components, CF 4.5.x will let you know far quicker than CF 4.0.x.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com