Hi Seth

Yeah that is pretty much what I'm trying to do and that article is
definitely on the right track but stops short of letting me see what
is actually running in each of the threads or what request initiated
the thread.

My trouble is that I have a situation on a server that occasionally
crops up where 2 threads seem to go into zombie mode and never time
out. They just chew up lots of CPU. I want to be able to see what they
are doing and start debugging from there.

At this point I'm thinking the kill -3 at the cmd line is probably
going to be my best bet.

Mark

On 7/22/06, Seth MacPherson <[EMAIL PROTECTED]> wrote:
> > > Where to next? How do I interrogate these threads to see what they are
> > > actually doing?
>
> Mark,
>
> May I ask what you are trying to do with the threads?  Is your goal to be
> able to interrupt a process, sort of like an async-cfabort?
>
> <!--- Page 1 --->
> <loop>
>         <go do something asynchronously and perhaps label the thread for
> later reference>
>                 <take a really long time to process>
>         </...>
> </loop>
>
> <!--- Page 2 --->
>
> <loop over thread array>
>         <async processes thought to be still executing>
>                 <button: CancelProcess(thisThread)>
>         </...>
> </loop>
>
>
> Function CancelProcess(thread) {
>         inspect thread,
>         identify status of variables,
>         do cleanup work where necessary,
>         then thread.interrupt()
> }
>
> I'm not a Java Developer but this article seemed like it might relate.
> http://builder.com.com/5100-6370-5144546.html
>
> Good luck, and please share your findings as you proceed.  I too am trying
> to work with threads in CF.
>
> Regards,
>
> - Seth
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:10/messageid:6054
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10

Reply via email to