springboot打成war包后,在tomcat中启动时间不稳定,时慢时快
昨天的启动日志:
19-Apr-2018 17:55:53.410 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/root/testtomcat/apache-tomcat-9.0.7/webapps/dingdongfm.war]
19-Apr-2018 17:55:56.317 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.《-----一直卡在这里
17:57:29.001 [main] INFO org.springframework.context.annotation.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3cfa429c: startup date [Thu Apr 19 17:57:29 CST 2018]; root of context hierarchy
17:57:29.118 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.5.Final
今天的启动日志:
20-Apr-2018 11:22:34.384 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/root/testtomcat/apache-tomcat-9.0.7/webapps/dingdongfm.war]
20-Apr-2018 11:22:37.019 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
11:22:47.176 [main] INFO org.springframework.context.annotation.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@30e4cf5e: startup date [Fri Apr 20 11:22:47 CST 2018]; root of context hierarchy
springboot打成war包部署到tomcat上,昨天和今天的启动时间差很多。环境没有动过,tomcat关于熵池的配置都是一致的。有人碰到过这个问题么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
"tomcat关于熵池的配置都是一致的"。这个配置已经改过且生效了。
不太懂你的意思,能具体说下么?
https://my.oschina.net/wangnian/blog/687914
看下你的缓存机制
同一个web应用,在同一台服务器的同一个tomcat上运行,昨天和今天的启动时间差别很大。昨天每次启动基本都在4分钟左右,今天在40秒左右。想知道什么原因,但是没有定位思路,所以来这请教。
没明白你要表达的意思
你的意思是直接用内嵌的容器启动?
内置的有坑。。。
回复
有何坑?
回复
@zjg23 : 对啊
既然用了springboot,为什么还要用tomcat?这不是脱裤子放屁嘛!