Hi

> > I am thinking about a strategy to iterate over all running threads and
> > interrupt (and if absolutely necessary stop) all threads started by a
> > certain classloader (not sure if it is possible, but I suspect so -
might
> > require instrumention though.)
> Tomcat can already do this.

Great. Where can I find the code for this and how is it enabled?
Is there any documentation of that feature?


> You don't want to use it though. In my testing the JVM crashed about 50%
of the time.

I don't understand this. It should definitely not crash. (It might (but
should not) leak resources however...)


> Better to fix the thread leak.

For sure.


> Tomcat will also tell you which threads weren't stopped along with a bunch
of other memory leak checks.

Where can I find this? I would be very much interested. Never seen that.



Beside my interest for all the above, my webapp has a plugin mechanism that
also has to be able unload plugins, so I am working on code to make that
really happen. Relying on these plugins developers is not that good idea.
BTW: I am also planning on deadlock detection and on restarting blocking
modules.


Regards,
  Steffen

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to