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 完美解決!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章