tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Souness <sou...@hotmail.com>
Subject Re: Http11AprProtocol took 2 hr to init on http-443
Date Tue, 20 Jun 2006 03:32:47 GMT
Hi

Could it be related to some problems that Java has had on some Linux 
distributions with obtaining entropy for its random number generation 
for encryption?

In the past (a few years back admittedly) we encountered a problem when 
trying to connect our application to an https site.

Changing the
securerandom.source
entry in
${JAVA_HOME}/jre/lib/security/java.security
to
file:/dev/urandom
solved it for us.


--
Stephen Souness




Jeff Chuang wrote:
> Thanks for responses. If I put connector ajp-8009 configuration block 
> BEFORE connector http-443 in server.xml, the log looks like
> 
> Jun 19, 2006 5:33:11 PM org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-80
> Jun 19, 2006 5:33:11 PM org.apache.coyote.ajp.AjpAprProtocol init
> INFO: Initializing Coyote AJP/1.3 on ajp-8009
> Jun 19, 2006 7:43:48 PM org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-443
> Jun 19, 2006 7:43:48 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 7840211 ms
> 
> So I believe ports 80 and 8009 are ok, the initialization problem is 
> only on port 443
> I start tomcat by jsvc as root, and use openssl to generate self-signed 
> certificate. After 2+ hours initialization, everything works fine and 
> the ssl connector performance is excellent. Is it possible that any 
> share library of openssl caused this initialization problem(delay)?
> 
> David Smith wrote:
>> Looks to me more like port 80 is taking 2+ hours to initialize, not 
>> 443.  My guess is tomcat is waiting for something -- possibly a system 
>> service.  At anyrate, I don't experience that here on any version of 
>> tomcat or JDK.
>>
>> --David
>>
>> Jeff Chuang wrote:
>>
>>> Hi,
>>>
>>> After starting tomcat from jsvc as service, it took 7840217 ms to 
>>> initialize Http11AprProtocol on http-443, during which port 80 was 
>>> blocked. There was no error found in jsvc debug info, neither was 
>>> catalina.out. After initialization on port 443, everything works(both 
>>> ports 80 and 443). It occurs every service restart. Is anyone 
>>> experiencing this problem? Any common would be appreciated.
>>>
>>> Jeff
>>>
>>> System info:
>>> Hardware platform: AMD Opteron Dual core 165 on Tyan 2865 board with 
>>> 1G memory
>>> OS: Linux FC-5-x86_64
>>> JDK: Sun 1.5.0_07-b03
>>> Openssl:0.9.8b
>>> Apr: 1.2.7
>>> Tomcat: 5.5.17
>>>
>>>
>>>
>>> catalina.out:
>>>
>>> Jun 19, 2006 1:43:28 PM org.apache.coyote.http11.Http11AprProtocol init
>>> INFO: Initializing Coyote HTTP/1.1 on http-80
>>> Jun 19, 2006 3:54:05 PM org.apache.coyote.http11.Http11AprProtocol init
>>> INFO: Initializing Coyote HTTP/1.1 on http-443
>>> Jun 19, 2006 3:54:05 PM org.apache.coyote.ajp.AjpAprProtocol init
>>> INFO: Initializing Coyote AJP/1.3 on ajp-8009
>>> Jun 19, 2006 3:54:05 PM org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 7840217 ms
>>> Jun 19, 2006 3:54:06 PM org.apache.catalina.core.StandardService start
>>> INFO: Starting service Catalina
>>> Jun 19, 2006 3:54:06 PM org.apache.catalina.core.StandardEngine start
>>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
>>> Jun 19, 2006 3:54:06 PM org.apache.catalina.core.StandardHost start
>>> INFO: XML validation disabled
>>> Jun 19, 2006 3:54:09 PM org.apache.catalina.core.ApplicationContext log
>>> INFO: ContextListener: contextInitialized()
>>> Jun 19, 2006 3:54:09 PM org.apache.catalina.core.ApplicationContext log
>>> INFO: SessionListener: contextInitialized()
>>> Jun 19, 2006 3:54:09 PM org.apache.catalina.core.ApplicationContext log
>>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
>>> [org.apache.webapp.balancer.RuleChain: 
>>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
>>> News / Redirect URL: http://www.cnn.com], 
>>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
>>> name: paramName / Target param value: paramValue / Redirect URL: 
>>> http://www.yahoo.com], 
>>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
>>> http://jakarta.apache.org]]
>>> Jun 19, 2006 3:54:10 PM org.apache.catalina.core.ApplicationContext log
>>> INFO: ContextListener: contextInitialized()
>>> Jun 19, 2006 3:54:10 PM org.apache.catalina.core.ApplicationContext log
>>> INFO: SessionListener: contextInitialized()
>>> Jun 19, 2006 3:54:10 PM org.apache.coyote.http11.Http11AprProtocol start
>>> INFO: Starting Coyote HTTP/1.1 on http-80
>>> Jun 19, 2006 3:54:10 PM org.apache.coyote.http11.Http11AprProtocol start
>>> INFO: Starting Coyote HTTP/1.1 on http-443
>>> Jun 19, 2006 3:54:10 PM org.apache.coyote.ajp.AjpAprProtocol start
>>> INFO: Starting Coyote AJP/1.3 on ajp-8009
>>> Jun 19, 2006 3:54:10 PM org.apache.catalina.storeconfig.StoreLoader load
>>> INFO: Find registry server-registry.xml at classpath resource
>>> Jun 19, 2006 3:54:11 PM org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 5291 ms
>>>
>>>
>>> SSL connector in server.xml:
>>>
>>> <Connector port="443" maxHttpHeaderSize="8192"
>>>                 maxThreads="150" minSpareThreads="25" 
>>> maxSpareThreads="75"
>>>                 enableLookups="false" disableUploadTimeout="true" 
>>> debug="0" scheme="https"
>>>                 secure="true" acceptCount="100" SSLEngine="on" 
>>> SSLCertificateFile="/data/CA/mycert.crt"
>>>                 SSLCertificateKeyFile="/data/CA/mykey.key" 
>>> SSLPassword="mypassword" />
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message