How to get all the suspended threads and kill them? I am working on a web application which starts a thread named TImer-0 which is suspended most of the times.When i terminate the apache server it shows that
SEVERE: The web application [/LoggingMonitor] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
How to get all the suspended threads and kill them? I am working on
Share
You really don’t want to suspend threads, as that may stop the entire process working. Even if you do have suspended threads, stopping them is not likely to help.
Timer-nsounds likejava.util.Timer. This can be cleaned up by callingcancel. So long as you don’t have a memory leak, the thread should be collected eventually (cancelled by afinalizer).