Skipping unneeded JARs during scanning can improve startup time and JSP compilation time

Tomcat在启动是提示:

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.

Tomcat启动时会扫描大量jar包,如果含有不符合TLD规范的就会出现这个问题。

修改Tomcat启动文件,添加:-Djava.security.egd=file:/dev/./urandom

JAVA_OPTS="$JAVA_OPTS -server -Xms256m -Xmx512m -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=256M -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom"

然后重启Tomcat。

你可能感兴趣的:(Skipping unneeded JARs during scanning can improve startup time and JSP compilation time)