Tomcat document provided configuration to handle stuck thread by enabling threshold and interruptThreadThreshold subsequently.
https://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Stuck_Thread_Detection_Valve
I have enabled it in spring boot 2.x.x for embedded tomcat using bean based configuration and achieved it. It is able to kill thread if it is exceeding threshold.
I am looking for what is cons for enabling it. As of now i did not get any docs about best practices.
Any help would be appreciable.