The Woes of CFThread

View: New views
4 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

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

by Brad Wood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

~Brad

-----Original Message-----
From: Dan G. Switzer, II [mailto:dswitzer@...]


Threads should be used with caution, because each thread is going to be
taking up memory (although I'm not sure how much memory each thread
uses.)
Spawning off threads like this is in rapid fire succession is a good way
for
the JVM to run out of memory and once that happens, everything becomes
really unstable.

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
workload--so
w/500 records, thread one would work on records 1-100, thread 2 would
work
on records 101-200, etc.)

-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:308867
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

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

by Ian Skinner-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 probably would have tried it
> already.
>
> ~Brad

I suspected I have not been getting all of HOF messages, but now I have
confirmation.  I had noticed that once in a while I did not recieve a
copy of a message I sent to the lists.  I also noticed that there were
increasing cases where there seemed to be replies to messages that I
never receive the original.

 I never received either of these replies a month ago.

I do not see in messages from HOF in the spam folder at my end, but I am
not sure what may be happening in between.  I'll have to look up
Micheal's address when I get back from my 9:00 am meeting to see if
anything is getting bounced back.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:308869
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

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

by Michael Dinowitz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
frame could also cause mail to not show up.


On Thu, Jul 10, 2008 at 12:00 PM, Ian Skinner <HOF@...> wrote:

> 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 probably would have tried it
> > already.
> >
> > ~Brad
>
> I suspected I have not been getting all of HOF messages, but now I have
> confirmation.  I had noticed that once in a while I did not recieve a
> copy of a message I sent to the lists.  I also noticed that there were
> increasing cases where there seemed to be replies to messages that I
> never receive the original.
>
>  I never received either of these replies a month ago.
>
> I do not see in messages from HOF in the spam folder at my end, but I am
> not sure what may be happening in between.  I'll have to look up
> Micheal's address when I get back from my 9:00 am meeting to see if
> anything is getting bounced back.
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:308878
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

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

by Dave Watts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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 workload--so
> w/500 records, thread one would work on records 1-100, thread
> 2 would work on records 101-200, etc.)

Dan and Brad's suggestions are the way to go here. With 1K concurrent
threads, I'm surprised it's not failing even quicker.

One common pattern of sorts to use here is to create a thread pool and a
controller thread. The controller thread could keep track of which reports
have and/or haven't been generated, and track the progress of the worker
threads.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:308911
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
< Prev | 1 - 2 | Next >
LightInTheBox - Buy quality products at wholesale price!