The Dropwizard metrics library has a servlet to output a thread dump of the server: https://github.com/dropwizard/metrics/blob/3.2-development/metrics-servlets/src/main/java/com/codahale/metrics/servlets/ThreadDumpServlet.java
Is there any existing tool that parses this output into a more structured format and maybe also generate a nice html output for it?