底层Log调优,应用正常终止取消异常栈信息打印;

master
xuxueli 6 years ago
parent 1d2a893707
commit a53e77b4c0
  1. 9
      xxl-job-core/src/main/java/com/xxl/job/core/thread/ExecutorRegistryThread.java
  2. 9
      xxl-job-core/src/main/java/com/xxl/job/core/thread/JobLogFileCleanThread.java
  3. 8
      xxl-job-core/src/main/java/com/xxl/job/core/thread/TriggerCallbackThread.java

@ -59,13 +59,18 @@ public class ExecutorRegistryThread extends Thread {
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
try {
TimeUnit.SECONDS.sleep(RegistryConfig.BEAT_TIMEOUT);
} catch (InterruptedException e) {
logger.warn(">>>>>>>>>>> xxl-job, executor registry thread interrupted, error msg:{}", e.getMessage());
if (!toStop) {
logger.warn(">>>>>>>>>>> xxl-job, executor registry thread interrupted, error msg:{}", e.getMessage());
}
}
}

@ -82,13 +82,18 @@ public class JobLogFileCleanThread extends Thread {
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
try {
TimeUnit.DAYS.sleep(1);
} catch (InterruptedException e) {
logger.error(e.getMessage(), e);
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
}
logger.info(">>>>>>>>>>> xxl-job, executor JobLogFileCleanThread thread destory.");

@ -76,7 +76,9 @@ public class TriggerCallbackThread {
}
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
}
@ -88,7 +90,9 @@ public class TriggerCallbackThread {
doCallback(callbackParamList);
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
logger.info(">>>>>>>>>>> xxl-job, executor callback thread destory.");

Loading…
Cancel
Save