Change container thread pool log printing

pull/246/head
chen.ma 2 years ago
parent fee33e4dd1
commit b41c70eb23

@ -92,10 +92,7 @@ public class JettyWebThreadPoolHandler extends AbstractWebThreadPoolService {
Integer maxSize = threadPoolParameterInfo.getMaximumPoolSize();
jettyExecutor.setMinThreads(coreSize);
jettyExecutor.setMaxThreads(maxSize);
log.info(
"[JETTY] Changed web thread pool. " +
"\n corePoolSize :: [{}]" +
"\n maximumPoolSize :: [{}]",
log.info("[JETTY] Changed web thread pool. corePoolSize :: [{}], maximumPoolSize :: [{}]",
String.format(CHANGE_DELIMITER, minThreads, jettyExecutor.getMinThreads()),
String.format(CHANGE_DELIMITER, maxThreads, jettyExecutor.getMaxThreads()));
} catch (Exception ex) {

@ -122,8 +122,7 @@ public class TomcatWebThreadPoolHandler extends AbstractWebThreadPoolService {
tomcatExecutor.setCorePoolSize(threadPoolParameterInfo.getCorePoolSize());
tomcatExecutor.setMaximumPoolSize(threadPoolParameterInfo.getMaximumPoolSize());
tomcatExecutor.setKeepAliveTime(threadPoolParameterInfo.getKeepAliveTime(), TimeUnit.SECONDS);
log.info(
"[TOMCAT] Changed web thread pool. corePoolSize :: [{}], maximumPoolSize :: [{}], keepAliveTime :: [{}]",
log.info("[TOMCAT] Changed web thread pool. corePoolSize :: [{}], maximumPoolSize :: [{}], keepAliveTime :: [{}]",
String.format(CHANGE_DELIMITER, originalCoreSize, threadPoolParameterInfo.getCorePoolSize()),
String.format(CHANGE_DELIMITER, originalMaximumPoolSize, threadPoolParameterInfo.getMaximumPoolSize()),
String.format(CHANGE_DELIMITER, originalKeepAliveTime, threadPoolParameterInfo.getKeepAliveTime()));

@ -161,11 +161,7 @@ public class UndertowWebThreadPoolHandler extends AbstractWebThreadPoolService {
xnioWorker.setOption(Options.WORKER_TASK_CORE_THREADS, coreSize);
xnioWorker.setOption(Options.WORKER_TASK_MAX_THREADS, maxSize);
xnioWorker.setOption(Options.WORKER_TASK_KEEPALIVE, keepAliveTime);
log.info(
"[UNDERTOW] Changed web thread pool. " +
"\n corePoolSize :: [{}]" +
"\n maximumPoolSize :: [{}]" +
"\n keepAliveTime :: [{}]",
log.info("[UNDERTOW] Changed web thread pool. corePoolSize :: [{}], maximumPoolSize :: [{}], keepAliveTime :: [{}]",
String.format(CHANGE_DELIMITER, originalCoreSize, coreSize),
String.format(CHANGE_DELIMITER, originalMaximumPoolSize, maxSize),
String.format(CHANGE_DELIMITER, originalKeepAliveTime, keepAliveTime));

Loading…
Cancel
Save