Ian, >Can anybody point out what is fundamentally wrong with this code. Such >that it has at least a 50% chance of complete failure resulting in a >non-responsive ColdFusion server that must be restarted. What gets me >is that sometimes it works completely correct and produces all the >desired files. The next time, with the exact same code and data, it >fails and hangs the server, but generates no exceptions or errors. At >least none that I have been able to find. > > [... clip ...] > > <!--- BUILD REPORT ---> > <cfreport template="ren.cfr" format="pdf" >name="vRenewalReport"> > <cfreportparam name="pFirmNo" >value="#variables.ResultFirms['firmno'][threadIndex]#"> > <cfreportparam name="pIssueDate" >value="#DateFormat(variables.pIssueDate, 'mm/dd/yy')#"> > <cfreportparam name="pRenewalId" value="#thread.vRenewalSeq#"> > </cfreport> > > <cfpdf action="write" source="vRenewalReport" >destination="#thread.vOutputFilePath#" overwrite="yes"> > > [... clip ...]
I wonder if the problem isn't with <cfthread /> but actually with heavy usage of either <cfreport /> or <cfpdf /> tags. Are you creating large reports? It could be a memory issue your running in to. How much RAM is available to the JVM? I would try simplifying things. Does it always work if you comment out the <cfreport /> and <cfpdf /> tags? If it does, what happens if you comment out the <cfreport /> tag and just write a very simply PDF? I could see how if you're generating some large PDFs, that without enough RAM it could drive the JVM nuts. -Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308847 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4