we are searching for a feature where WildFly monitors all managed threads and writes a message in the server log if the thread is stuck or looping longer than a configured timeout.
We had such a feature in WAS ND or WAS Liberty:
Hung-Thread Feature in WAS ND: Hung thread detection in WebSphere Application Server (Application Integration Middleware Support Blog)
Hung-Thread Feature in WAS Liberty: Request timing: Diagnosing slow requests on WAS Liberty - WASdev
Is there a similar feature also in WildFly or JBoss?