Tomcat8 启动时间很久 Tomcat日志【At least one JAR was scanned for TLDs yet contained no TLDs】

问题:之前都还是好好的,发布更新项目后,tomcat启动一直无效。打开tomcat日志显示以下信息

20-Jan-2019 19:41:20.949 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
20-Jan-2019 19:41:20.963 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
20-Jan-2019 19:41:20.974 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-443"]
20-Jan-2019 19:41:21.369 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
20-Jan-2019 19:41:21.371 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8019"]
20-Jan-2019 19:41:21.373 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
20-Jan-2019 19:41:21.373 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1125 ms
20-Jan-2019 19:41:21.402 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
20-Jan-2019 19:41:21.402 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.34
20-Jan-2019 19:41:23.717 INFO [www.xxx.net-startStop-1] 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.
20-Jan-2019 19:41:23.725 INFO [www.xxx.net-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
20-Jan-2019 19:41:23.809 INFO [www.xxx.net-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext

“At least one JAR was scanned for TLDs yet contained no TLDs”  这一句是关键!!!

Tomcat 8熵池阻塞变慢详解

作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs

 

解决方法:

第一步:

找到JDK安装目录,打开java.security文件【$JAVA_HOME$/jre/lib/security/java.security】

第二步:

搜索:

securerandom.source=file:/dev/urandom

securerandom.source=file:/dev/random

第三步:

将:securerandom.source=file:/dev/urandom

修改为↓↓↓↓↓↓

securerandom.source=file:/dev/./urandom

 

 

 

重启tomcat即可。

 

 

 

你可能感兴趣的:(点点滴滴)