Skip to content

Commit

Permalink
add queueRemainingSize log at the beginning monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
liujianjun.ljj committed Feb 29, 2024
1 parent 5504ae6 commit e62540e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ public void start() {
StringBuilder sb = new StringBuilder();
sb.append("coreSize:" + threadPoolExecutor.getCorePoolSize() + ",");
sb.append("maxPoolSize:" + threadPoolExecutor.getMaximumPoolSize() + ",");
sb.append("queueRemainingSize:" + threadPoolExecutor.getQueue().remainingCapacity() + ",");
sb.append("queueRemainingSize:"
+ threadPoolExecutor.getQueue().remainingCapacity() + ",");
sb.append("keepAliveTime:"
+ threadPoolExecutor.getKeepAliveTime(TimeUnit.MILLISECONDS)
+ "\n");
+ threadPoolExecutor.getKeepAliveTime(TimeUnit.MILLISECONDS)
+ "\n");
if (logger.isInfoEnabled()) {
logger.info(sb.toString());
}
Expand Down

0 comments on commit e62540e

Please sign in to comment.