Tomcat启动缓慢(AprLyfecycleListener)

时间:2015-02-24 19:40:46

标签: java eclipse performance tomcat tomcat6

我只是想知道为什么我的tomcat开始这么慢。 我能够更改超时,然后我看到了开始日志

Feb 24, 2015 4:24:04 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which [...]
Feb 24, 2015 4:26:11 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 24, 2015 4:26:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 127659 ms
Feb 24, 2015 4:26:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 24, 2015 4:26:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.43
Feb 24, 2015 4:26:11 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 24, 2015 4:26:11 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 24, 2015 4:26:11 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/13  config=null
Feb 24, 2015 4:26:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 301 ms

分析这个:

Feb 24, 2015 4:24:04 PM org.apache.catalina.core.AprLifecycleListener init
Feb 24, 2015 4:26:11 PM org.apache.coyote.http11.Http11Protocol init

和...

Feb 24, 2015 4:26:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 127659 ms

这个 AprLifecycleListener 的开始花了2分钟,我在互联网上看到了其他一些日志,它们立即开始。

我使用的是eclipse luna,tomcat 6,java 6和ubuntu 12.04 x64

感谢您的帮助。

0 个答案:

没有答案