docker下tomcat启动慢

apcc4m 发布于 2014/11/26 16:26
阅读 2K+
收藏 0

Using CATALINA_BASE:   /usr/local/tomcat

Using CATALINA_HOME:   /usr/local/tomcat

Using CATALINA_TMPDIR: /usr/local/tomcat/temp

Using JRE_HOME:        /usr

Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

Nov 26, 2014 7:10:38 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib

Nov 26, 2014 7:10:38 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"]

Nov 26, 2014 7:10:38 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

Nov 26, 2014 7:10:38 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 466 ms

Nov 26, 2014 7:10:38 AM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Nov 26, 2014 7:10:38 AM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.56

Nov 26, 2014 7:10:38 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/tomcat/webapps/examples

Nov 26, 2014 7:13:19 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom

INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [159,907] milliseconds.

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/tomcat/webapps/examples has finished in 160,415 ms

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/tomcat/webapps/manager

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/tomcat/webapps/manager has finished in 98 ms

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

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

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/tomcat/webapps/host-manager has finished in 40 ms

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/tomcat/webapps/ROOT

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/tomcat/webapps/ROOT has finished in 31 ms

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/tomcat/webapps/docs

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/tomcat/webapps/docs has finished in 33 ms

Nov 26, 2014 7:13:19 AM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["http-bio-8080"]

Nov 26, 2014 7:13:19 AM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-8009"]

Nov 26, 2014 7:13:19 AM org.apache.catalina.startup.Catalina start

INFO: Server startup in 160698 ms

tomcat下什么项目也没有,怎么启动还这么慢呢 看启动的时间好像是生成sessionId花费了很长的时间,大家有遇到过吗?
加载中
0
char1st
char1st

对的sessionId的问题。

http://hongjiang.info/tomcat-startup-slowly-in-docker/


0
innerp
innerp

Nov 26, 2014 7:10:38 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/tomcat/webapps/examples

Nov 26, 2014 7:13:19 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom

INFO: Creation of SecureRandom instance for session ID generation using

 [SHA1PRNG] took [159,907] milliseconds.

这两步之间时间差距很大吧,你把example应用去掉试试

返回顶部
顶部