How to kill a java thread using VisualVM or using a unix command?

后端 未结 8 1107
耶瑟儿~
耶瑟儿~ 2021-01-31 04:30

I m using windows 7 OS. I have around 6 threads in my application. For the purpose of testing the alerts to check the health of the threads, i need to kill the thre

8条回答
  •  借酒劲吻你
    2021-01-31 05:28

    There is no safe way to "kill" a thread without killing the process it is in. It not something you would do deliberately. For testing purposes I would add code to your application to support this.

提交回复
热议问题