// The ThreadDump is built by internal codahale.metrics servlet library we are abusing.
ThreadDump threadDump = new ThreadDump(ManagementFactory.getThreadMXBean());
ByteArrayOutputStream output = new ByteArrayOutputStream();
threadDump.dump(output);
return new String(output.toByteArray(), StandardCharsets.UTF_8);
}
@GET @Timed
@RequiresGuest // turns off authentication for this action