-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关闭项目时其创建的线程并未关闭报警告信息 #201
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The web application [zdsspj] appears to have started a thread named [OkHttp TaskRunner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:460)
okhttp3.internal.concurrent.TaskRunner$RealBackend.coordinatorWait(TaskRunner.kt:294)
okhttp3.internal.concurrent.TaskRunner.awaitTaskToRun(TaskRunner.kt:218)
okhttp3.internal.concurrent.TaskRunner$runnable$1.run(TaskRunner.kt:59)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:750)
17:21:23.233 [restartedMain] WARN o.a.c.loader.WebappClassLoaderBase - The web application [zdsspj] appears to have started a thread named [Okio Watchdog] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
okio.AsyncTimeout$Companion.awaitTimeout$okio(AsyncTimeout.kt:300)
okio.AsyncTimeout$Watchdog.run(AsyncTimeout.kt:187)
springboot项目的关闭方式为 以下方式时可以复现
@slf4j
@EnableAsync
@EnableCaching
@EnableScheduling
@SpringBootApplication(exclude = { SaTokenDaoRedisJackson.class })
public class PortalApplication {
}
版本
com.dtflys.forest
forest-spring-boot-starter
1.5.36
配置
forest:
connect-timeout: 20000
read-timeout: 20000
backend: okhttp3 # 后端 HTTP 框架(默认为 okhttp3)
max-connections: 500 # 连接池最大连接数(默认为 500)
max-route-connections: 500 # 每个路由的最大连接数(默认为 500)
The text was updated successfully, but these errors were encountered: