> I am monitoring a java application (running as a Windows service) from
> a third party.
[quoted text clipped - 6 lines]
> external command or program I can write to kill an individual thread
> inside a java.exe ?
No. You'll have stop the entire Java proces and start it again.
> I am monitoring a java application (running as a Windows service) from
> a third party.
[quoted text clipped - 6 lines]
> external command or program I can write to kill an individual thread
> inside a java.exe ?
Not unless you've arranged a way for the threads to stop
on (or shortly after) some external stimulus.
See the Javadoc for Thread#stop() to understand why this
cannot even be done safely from inside the Java program, much
less from the outside.

Signature
Eric Sosman
esosman@ieee-dot-org.invalid
Mike Schilling - 03 Aug 2007 07:11 GMT
>> I am monitoring a java application (running as a Windows service)
>> from a third party.
[quoted text clipped - 9 lines]
> Not unless you've arranged a way for the threads to stop
> on (or shortly after) some external stimulus.
One way of doing this to to run the JVM as debuggable. That lets you attach
a debugger later, examine the threads, and kill whichever ones you like.
> See the Javadoc for Thread#stop() to understand why this
> cannot even be done safely from inside the Java program, much
> less from the outside.
That's true, of course.