private void logThreadStatistics(){
  int threadCount=threadMXBean.getThreadCount();
  long totalStartedThreads=threadMXBean.getTotalStartedThreadCount();
  StringBuilder sb=new StringBuilder();
  sb.append("Threads: ");
  sb.append(threadCount);
  sb.append(" total started: ");
  sb.append(totalStartedThreads);
  log.info(sb.toString());
}

private void logThreadStatistics ( ) { int threadCount = threadMXBean . getThreadCount ( ) ; long totalStartedThreads = threadMXBean . getTotalStartedThreadCount ( ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( "Threads: " ) ; sb . append ( threadCount ) ; sb . append ( " total started: " ) ; sb . append ( totalStartedThreads ) ; log . info ( sb . toString ( ) ) ; }
log the thread statistics .
