Tomcat hangs on Deploying web application directory

来源:互联网 发布:数据库安全方案 编辑:程序博客网 时间:2024/06/08 06:35

INFO: Deploying web application directory /opt/tomcat/webapps/host-manager

http://serverfault.com/questions/655616/tomcat7-hangs-on-deploying-apps


A possible problem is Tomcat waiting for entropy to build up. Take a few thread dump with jstack to see who's waiting on what.

Tomcat 7+ heavily relies on SecureRandom class to provide random values for its session ids, and other things. Depending on your JRE, it can cause delays during startup if the entropy source that is used to initialize SecureRandom is short of entropy.

If the problem is entropy, there is a way to configure JRE to use a non-blocking entropy source by setting the following system property:

-Djava.security.egd=file:/dev/./urandom
Have a try
vim /etc/default/tomcat7
JAVA_OPTS="****  -Djava.security.egd=file:/dev/./urandom"
如何卡在Starting Servlet Engine: Apache Tomcat/7.0.40
多半是自己的APP有异常
0 0