RE: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Dave Watts
> I'd try to really limit the number of threads your creating. > I'd even look at limiting things to a fixed number of worker > threads. Try dividing the work load between like 5 or 6 > threads. Have each thread process it's share of the work load > (i.e. each work load would handle 1/5 of the

Re: Missing Messages --- was Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Michael Dinowitz
I'd also check if there's a spam blocker 'upstream' from you, especially if your getting your mail through a business location. In addition, the server is set to try and send mail for 48 hours before dropping it. A network problem that prevents or distorts mail server connections within that time f

RE: Missing Messages --- was Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Brad Wood
OK, then. I'll take you off my black list. :) ~Brad -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 11:00 AM To: CF-Talk Subject: Missing Messages --- was Re: The Woes of CFThread -- going out of my mind! Brad Wood wrote: > Dan, I

Missing Messages --- was Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Ian Skinner
Brad Wood wrote: > Dan, I already suggested this approach to IAN nearly a month ago-- > twice. > > http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307447 > http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307626 > > If he thought there was merit in that he probabl

RE: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Brad Wood
Dan, I already suggested this approach to IAN nearly a month ago-- twice. http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307447 http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:307626 If he thought there was merit in that he probably would have tried it already

RE: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Dan G. Switzer, II
Ian, >Here is my simplest test case to date. I seems to show that there is a >limit, but I really don't know where it might be. > > > > > > > > > > > What if you change the above code to:

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Brian Kotek
He could also still use cfthread, but loop over the query and create the threads in chunks rather than all at once. I don't know how well that will work given the overhead of creating the PDFs, but it would be worth trying in different chunks (2, 5, 10, etc.). On Thu, Jul 10, 2008 at 10:57 AM, Dan

RE: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Dan G. Switzer, II
>Brian Kotek wrote: >> Also, Ian, how many threads are you creating here based on the query >> results? 10? 10,000? >> >For this process 1,371. That is my basic question at this time -- What >are the practical limits of the > >Here is my simplest test case to date. I seems to show that there is

RE: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Dan G. Switzer, II
>The memory usage of the PDF report generation is defiantly a problem. >It is what we where trying to address with the usage of the thread tag. >The idea being that by splitting the process into separate threads and >throttle them down would allow the server time to clean up memory used >in previou

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Brian Kotek
Yes the problem is probably that you are creating over 1000 threads, each of which runs a cfreport tag to generate a PDF. You're probably killing the server. CFThread threads are just like any normal CF web thread, and you certainly wouldn't want to try and simultaneously process 1000 HTTP request

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Ian Skinner
Dan G. Switzer, II wrote: > Ian, > I wonder if the problem isn't with but actually with heavy > usage of either or 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 w

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Ian Skinner
Brian Kotek wrote: > Also, Ian, how many threads are you creating here based on the query > results? 10? 10,000? > For this process 1,371. That is my basic question at this time -- What are the practical limits of the Here is my simplest test case to date. I seems to show that there is a l

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Brian Kotek
Also, Ian, how many threads are you creating here based on the query results? 10? 10,000? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Rupesh Kumar
Excellent point 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-T

RE: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Dan G. Switzer, II
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 f

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Rupesh Kumar
Well, Did you check what is the thread doing when you say the Server is hung? Can you take a thread dump and post that here? You can take the thread dump using Server monitor or you can refer to my post http://coldfused.blogspot.com/2005/11/thread-dumps.html however, I see few potential problem

Re: The Woes of CFThread -- going out of my mind!

2008-07-10 Thread Rupesh Kumar
Well, Did you check what is the thread doing when you say the Server is hung? Can you take a thread dump and post that here? You can take the thread dump using Server monitor or you can refer to my post http://coldfused.blogspot.com/2005/11/thread-dumps.html however, I see few potential problem

Re: The Woes of CFThread

2008-07-08 Thread s. isaac dealey
Just glancing at this code snippet... I haven't done any work with cfthread recently, but I have implemented it in the past... I wouldn't expect the var keyword at the top to work. The thread does its own encapsulation that's more similar to a custom tag, so I would expect the var keyword to produc

Re: The Woes of CFThread

2008-07-08 Thread Ian Skinner
Hello is this thing on? Raymond Camden wrote: > On Mon, Jul 7, 2008 at 1:06 PM, Ian Skinner <[EMAIL PROTECTED]> wrote: > >> Is anybody using functionality? Is it working well for you? >> > > Yep. > How are you using it? Are there praticle limits on how many threads to create, how lo

Re: The Woes of CFThread -- going out of my mind!

2008-07-08 Thread Ian Skinner
Well I fail. 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 de

Re: The Woes of CFThread

2008-07-07 Thread s. isaac dealey
> So then look in your code thats running in the thread. Is there > something there that can hang? Do you have a deadlock of some sort? I was thinking about that and knowing that he said the threads were writing files I was wondering about the number of threads he's spawning, the number of files b

Re: The Woes of CFThread

2008-07-07 Thread Raymond Camden
So then look in your code thats running in the thread. Is there something there that can hang? Do you have a deadlock of some sort? On Mon, Jul 7, 2008 at 3:21 PM, Ian Skinner <[EMAIL PROTECTED]> wrote: > Raymond Camden wrote: >> >> That is expected. The output is stored in the thread scope for th

Re: The Woes of CFThread

2008-07-07 Thread Ian Skinner
Raymond Camden wrote: > > That is expected. The output is stored in the thread scope for the > thread itself. If you use the JOIN action (Which basically means, wait > for these threads to end), you can get the output and look at it. This > should be documented. (And let me add - be sure you have r

Re: The Woes of CFThread

2008-07-07 Thread Raymond Camden
On Mon, Jul 7, 2008 at 1:06 PM, Ian Skinner <[EMAIL PROTECTED]> wrote: > Is anybody using functionality? Is it working well for you? Yep. > I have been fighting for most of a month with > functionality and it is driving me batty. cfthread is a VERY powerful tool. It also takes a lot of care t

The Woes of CFThread

2008-07-07 Thread Ian Skinner
Is anybody using functionality? Is it working well for you? I have been fighting for most of a month with functionality and it is driving me batty. Run the application one time and it does all the processing, but does not output the results. Run it a second time and the system locks up and