|
Home > Archive > WebSphere Application Server > June 2006 > Killing WAS Managed Threads?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Killing WAS Managed Threads?
|
|
| EoinWoods 2006-06-23, 7:35 am |
| WAS 6 introduces the useful feature of reporting threads that it thinks are hung. However, it's not really clear how you're meant to manage the situation if this happens.
Is there some way of killing a hung thread via WAS? After all, these are managed threads.
Thanks for any ideas.
Eoin.
--
Eoin Woods, UBS Investment Bank, London
| |
| Andy Wilkinson 2006-06-23, 7:35 am |
| EoinWoods wrote:
> WAS 6 introduces the useful feature of reporting threads that it thinks are hung. However, it's not really clear how you're meant to manage the situation if this happens.
>
> Is there some way of killing a hung thread via WAS? After all, these are managed threads.
>
> Thanks for any ideas.
>
> Eoin.
> --
> Eoin Woods, UBS Investment Bank, London
Eoin,
There is no mechanism in WAS to allow you to kill a thread that has been
identified as hung. The intention of the reporting of hung threads is to
aid with problem identification and determination, e.g. if a thread is
identified as hung it may be appropriate to take a thread dump of the
server to identify in what method the thread has hung.
Regards,
Andy Wilkinson
IBM
| |
| EoinWoods 2006-06-23, 7:35 am |
| OK, thanks for the information.
Eoin.
--
Eoin Woods, UBS Investment Bank, London
| |
|
| > Is there some way of killing a hung thread via WAS? After all, these are
managed threads.
No. Stopping threads in Java cannot be done externally without the thread
collaborates.
There is pretty much literature on this topic in multi-threading tutorials
and books.
Basically, what can be done is send the thread a signal to *ask* it to stop.
But if no code is foreseen to abide to the signal, the thread cannot be
stopped externally.
|
|
|
|
|