springboot 2.5.8 我在项目启动时候非常慢 时间长达300s

Mrdadam 发布于 2022/07/24 09:21
阅读 1K+
收藏 0

我在启动的时候项目没有断点  
在 Tomcat initialized 就花了300多s
22-07-22 23:38:53.455 []  [background-preinit] INFO  org.hibernate.validator.internal.util.Version:21 - HV000001: Hibernate Validator 6.2.0.Final
22-07-22 23:38:53.469 []  [main] INFO  StartApplication:55 - Starting StartApplication using Java 1.8.0_05 on DESKTOP-9OUGME0 with PID 14008 (D:\工作\other\springboot-base\core\target\classes started by maox in D:\工作\other\springboot-base)
22-07-22 23:38:53.470 []  [main] INFO  StartApplication:674 - The following profiles are active: dev
22-07-22 23:38:55.181 []  [main] INFO  o.s.d.r.config.RepositoryConfigurationDelegate:262 - Multiple Spring Data modules found, entering strict repository configuration mode!
22-07-22 23:38:55.185 []  [main] INFO  o.s.d.r.config.RepositoryConfigurationDelegate:132 - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
22-07-22 23:38:55.214 []  [main] WARN  o.s.boot.autoconfigure.AutoConfigurationPackages:188 - @EnableAutoConfiguration was declared on a class in the default package. Automatic @Repository and @Entity scanning is not enabled.
22-07-22 23:38:55.217 []  [main] INFO  o.s.d.r.config.RepositoryConfigurationDelegate:201 - Finished Spring Data repository scanning in 8 ms. Found 0 Redis repository interfaces.
22-07-22 23:44:10.054 []  [main] INFO  o.s.boot.web.embedded.tomcat.TomcatWebServer:108 - Tomcat initialized with port(s): 8081 (http)
22-07-22 23:44:10.066 []  [main] INFO  org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-8081"]
22-07-22 23:44:10.067 []  [main] INFO  org.apache.catalina.core.StandardService:173 - Starting service [Tomcat]
22-07-22 23:44:10.067 []  [main] INFO  org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.56]
22-07-22 23:44:10.215 []  [main] INFO  o.a.c.c.ContainerBase.[Tomcat].[localhost].[/ydxt]:173 - Initializing Spring embedded WebApplicationContext
22-07-22 23:44:10.215 []  [main] INFO  o.s.b.w.s.c.ServletWebServerApplicationContext:290 - Root WebApplicationContext: initialization completed in 316661 ms
22-07-22 23:44:10.267 []  [main] INFO  org.apache.catalina.core.StandardContext:173 - Suspicious URL pattern: [/**] in context [/ydxt], see sections 12.1 and 12.2 of the Servlet specification

安装网上方法我设置的 :-Djava.security.egd=file:/dev/./urandom   还是每一任何效果

加载中
0
湖水没了
湖水没了

是不是redis 数据库等走外网了

湖水没了
湖水没了
回复 @Mrdadam : 卡住得这段时间 打印几次线程堆栈 就能猜测出 卡在哪里了
Mrdadam
Mrdadam
redis、mysql 都是本地
0
ice1938
ice1938

看看有没有不需要的包或配置,默认配置加载不到对应的配置就会不断重试,导致时间长,把log配置成debug的输出就能看到具体是什么影响的

0
sprouting
sprouting

看不懂,反正又违规了,啥玩意

 

Mrdadam
Mrdadam
就卡在tomcat 初始化
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部