Streaming PDF in CF8 / Performance Issues

2012-08-01 Thread Jeff Chastain
I am doing some performance test on a site running on ColdFusion 8 using FusionReactor. There is one script that consistently ends up on the top of the long running requests list. The script is very simple - it grabs a PDF file that already exists on the files system and streams it to the

Re: Streaming PDF in CF8 / Performance Issues

2012-08-01 Thread Jake Churchill
Jeff, I've read there are issues with file/directory operations in CF when files are really large or the directory contains TONS of files. You might try a java alternative. I'm mobile right now, but I think it's something like this: createObject(java, java.io.File).init( filePath fileName

Re: Streaming PDF in CF8 / Performance Issues

2012-08-01 Thread Byron Mann
You could maybe try reading the pdf as a binary with cffile into a variable and outputting it that way with cfcontent ... variable=#x# Could be cfcontent is opening the file and not closing all the way or something. On Wed, Aug 1, 2012 at 6:45 PM, Jeff Chastain jeff.chast...@admentus.com wrote:

Re: Streaming PDF in CF8 / Performance Issues

2012-08-01 Thread Dan G. Switzer, II
Have you looked into an X-sendfile-mod for your web server? That will allow you to validate the request in CF, but pass the request back to the webserver to serve the file. The file does not have to be in a web accessible directory. -Dan On Wednesday, August 1, 2012, Jeff Chastain wrote: I