You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Marcel Ruff <ru...@swand.lake.de> on 2002/09/15 00:26:34 UTC

Webserver.shutdown Thread leak

Hi,

if i call webserver.shutdown() the
"XML-RPC Main" thread is still alive.

Adding into Webserver.java:318

   g.destroy();  (directly after g.interrupt();)

frees this resource.
However when the web server was active once (a client had connected)
it has created a memeber in its ThreadGroup and
calling destroy() throws an

  IllegalThreadStateException

So destroy() is only a partly solution.
Any idea how a threadGroup father can kill ists member threads?
Interrupt() seems not to be enough.

What about closing all Input/Output streams etc. and forcing
the child threads to die before?

thanks for a hint (and a fix in the next release :-))

Marcel