tomcat particularly slow start

solve

There are two solutions:

1) solve the Tomcat environment

can be configured JRE using non-blocking Entropy Source.

Adding such a line in the catalina.sh: -Djava.security.egd = file: / dev /./ urandom can be.

Join and then start Tomcat, start consuming the entire decline to Server startup in 2912 ms.

2) to solve the JVM environment

open $ JAVA_PATH / jre / lib / security / java.security file, find the following:

securerandom.source=file:/dev/urandom

Replaced

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

Guess you like

Origin www.cnblogs.com/hl15/p/11104403.html