public static void dumpStackTrace(final Thread thread, final StackTraceElement[] stackTrace) {
    StringBuilder msg = new StringBuilder();
    msg.append("Thread=<").append(thread).append("> stackDump:\n");
    for (final StackTraceElement stackTraceElement : stackTrace) {
      msg.append("\t").append(stackTraceElement).append("\n");
    }
    logger.info(msg.toString());
  }
Print a stack dump for the given vm.

@param vm the VM for which to print a stack dump
@since GemFire 5.0
geode-dunit/src/main/java/org/apache/geode/test/dunit/ThreadUtils.java