Matt-

I'm making an assumption here, but I think the "held" thread for a file
upload would belong to the web server, not coldfusion. IIS/Apache (whatever)
should hand the data over to CF once the request/post is completed.

As far as cfcontent, I don't see why serving a large file with it would be
any different from serving a large template. CF should simply process the
template, encountering the <cfcontent> tag which it would then use to set
the content type before handing the processed template back to the server.
So I guess the answer to your question is no less obvious than asking "If I
serve a large file, will I get a performance hit?" to which the answer is
"of course!"

hope this helps.

If you'd like to test, serve a large file from your server and watch how
much the vmem changes in task manager or top or something.

----- Original Message -----
From: "Matt Wisdom" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Tuesday, January 09, 2001 1:11 PM
Subject: CFContent -- how does it handle memory


> Does anyone know how <cfcontent> handles file reads and memory? I am
> concerned because of the lack of optimization using <cffile> for uploading
> files. CF stores the files in memory until they are written to disk, and I
> assume that they hold onto their process thread for the duration of the
> upload -- both of which I would expect to adversely affect performance
under
> heavy load.
>
> So for <cfcontent>, if the implementation is unoptimized (which seems
> plausible given the limitations of <cffile>, which I assume are due to the
> way CF integrates into web servers), I would expect that it:
> - reads the .cfm page
> - pulls the entire file from disk
> - stores the entire file in CF server memory
> - hands the web server (IIS) the entire file.
>
> Here is a specific list of server concerns, which may help focus any
> response:
>
> 1) memory usage
> - unpredictable memory requirements
> - fragmentation restrictions for large files on upload
> - possible effects on CF's caching memory
>
> 2) Extended hold on process threads -- would 10 separate uploads by 28k
> modems hold all 10 threads on a cf server for the duration of the uploads?
>
> 3) network bandwidth behind the firewall for file transfers -- are full
> files are processed even for aborted downloads?
>
> Thanks for any knowledge...
> Matt
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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