Closed 295477887 closed 4 years ago
压测时线程数一直增长,最终OOM,发现调用interrupt销毁线程时,如果线程内有wait、sleep等方法,就会销毁失败,直接抛出InterruptedException异常。在捕获到该异常时,应退出该线程
多谢多谢
压测时线程数一直增长,最终OOM,发现调用interrupt销毁线程时,如果线程内有wait、sleep等方法,就会销毁失败,直接抛出InterruptedException异常。在捕获到该异常时,应退出该线程