linux下 tomcat 启动过慢解决方案!!!试了好多都不行 就这个管用!!

 

org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/tomcat/webapps/ROOT
08-Apr-2020 08:38:21.383 INFO [localhost-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.

 

如果卡在这个位置不动就在 bin目录 catalina.sh里面

 

JAVA_OPTS="$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources  -Djava.security.egd=file:/dev/urandom"

在这个位置加入 -Djava.security.egd=file:/dev/urandom 完美解决!

你可能感兴趣的:(tomcat)