> Yes you are correct. There is a memory leak with Cold Fusion.

That is incorrect. What you are referring to is a leak in older MDACs. It is
not directly related to ColdFusion. I have not seen this problem, nor any
other evidence of a memory leak, surface in the past year.

> When I check the memory usage of the 4.0 machine it is
> somewhere around 4MB, when I check the 4.5.2 machines it is
> upwards of 16MB, and always increasing.  The 4.0 machine has
> been up longer, but probably only gets about 40-50% of the hits
> of the 4.5.2 servers.  I was wondering if this looked normal to people.

Without more information about the number of templates on the server, yes,
it sounds completely normal. ColdFusion, caches all templates in p-code
form. P-Code is roughly 4 to 5 times the size of raw template size.

Try taking the following steps. Launch a command prompt and go to the web
root/root of all the virtual domains hosted on each of these boxes. Type the
following command.

dir *.cfm /s

The last thing written to the screen will be the file size of all the files
that end with a ".cfm." Multiply this number by 5. If the result is greater
than or even close to the amount of RAM in use by the ColdFusion server,
then it would seem that you do not have a problem.

>The
>one machine was rebooted after an upgrade about a week ago, and it's memory
>usage has increased about 100% in that week.

The reason that RAM usage grows over time is because p-code is only cached
with each initial request to the template. To put in other words, each time
a template is called, ColdFusion checks to see if it is in cache. If it is
not, then it pulls the file off the drive, compiles, caches and executes it.
If the file is in cache and the time stamp of the file on the drive is not
newer than the cached file's time stamp, then ColdFusion executes the file
out of cache without recompiling the template. If the time stamp of the file
on the drive is newer than the cached template, it pulls the file off the
drive, re-compiles it, re-caches it, and executes the newly compiled
template.

>   I am pretty new to CF Server,
> and have an NT background, and this looks like a memory leak to me, with
CF
> Server not letting go of memory it takes.
> Any thoughts anybody?

Well, it is definitely not letting go of memory, but it is not the result of
a memory leak. I've had ColdFusion servers that had hundreds of Megs in RAM.
ColdFusion is RAM hungry, to be sure, but that is its design. I think it is
a pretty efficient design.

Benjamin S. Rogers
Web Developer, c4.net
Voice: (508) 240-0051
Fax: (508) 240-0057


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

Reply via email to