tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neha Agrawal <nehav...@yahoo.co.in>
Subject Re: Why Tomcat take about 15 minutes to start?
Date Thu, 21 Feb 2008 19:28:38 GMT





Hello
      thanks for the inputs

> | i recompiled my APR 1.2.7 with /dev/urandom 
> Exactly how did you do this? Are you sure you did it
> correctly? If you
> were recompiling, why not upgrade to the most recent
> version (1.2.12)?

APR 1.2.7 package i downloaded and compiled it using
./configure
make
make install


> | and hence recompiled Native libraries
> | (because Native library builds with --with-apr-)
> What other native library?

the tomcat-native libraries which are in tomcat's bin
folder, tomcat-native-1.1.6-src
 
> By the way, you didn't tell us /when/ you took the
> thread dump. Was this
> during the 12 minute delay? 

YES

> During that long pause, 
> $ sudo lsof | grep '/dev/urandom'
gave:

jsvc       1514  tomcat6    6r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5    6r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5    9r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   10r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   11r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   13r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   16r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   17r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   18r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   19r      CHR               
1,9                 1984 /dev/urandom
jsvc       4175  tomcat5   20r      CHR               
1,9                 1984 /dev/urandom
tlsmgr     9823  postfix    8r      CHR               
1,9                 1984 /dev/urandom

-------------------------------------------
Clarification:
i have two instances of tomcat server running in
parallel..
first instance: running withour APR and SSL,
		normal tomcat configuratio nto run on port 80 with
jsvc
		it created two jsvc processes: root (4174 ), tomcat5
(4175)
Second instance: which is the one i have to get
working 
		i have configured it on 8180 port(http) 
		and 8443 port (Open-ssl, APR , native library stuff)
		it also created two jsvc processes  : root (1513) 
			and tomcat6 (1514)
		this instance takes long time to restart after i try
to restart more than once.
		ie. if i restart it once (after 8-10 hours) it
restarts instantly.
Note: that first instance of tomcat is running and it
would be eventually replaced by the second one..		
---------------------------------------------------------------------------------------

Also during that pause:

$sudo lsof | grep '/dev/random'
jsvc       1514  tomcat6    5r      CHR               
1,8                 1966 /dev/random
jsvc       1514  tomcat6    9r      CHR               
1,8                 1966 /dev/random
jsvc       4175  tomcat5    5r      CHR               
1,8                 1966 /dev/random

 
> $ grep "/dev/urandom" `find
/usr/lib/jvm/java-1.5.0-sun/`
gave:

Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libtcnative-1.so.0.1.6
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libtcnative-1.so.0
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libtcnative-1.so
matches
Binary file /usr/lib/jvm/java-1.5.0-sun/jre/lib/rt.jar
matches
/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/java.security:#
On Solaris and Linux systems, if file:/dev/urandom is
specified and it
/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/java.security:#
This "NativePRNG" reads random bytes directly from
/dev/urandom./usr/lib/jvm/java-1.5.0-sun/jre/lib/security/java.security:#
On Windows systems, the URLs file:/dev/random and
file:/dev/urandom
/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/java.security:securerandom.source=file:/dev/urandom
/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/java.security:#
 -Djava.security.egd=file:/dev/urandom



> grep "/dev/random" `find
/usr/lib/jvm/java-1.5.0-sun/`
gave:
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libapr-1.so.0.2.7
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libapr-1.a
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libtcnative-1.so.0.1.6
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libtcnative-1.so.0
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libapr-1.so.0
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libtcnative-1.so
matches
Binary file
/usr/lib/jvm/java-1.5.0-sun/jre/lib/amd64/libapr-1.so
matches
Binary file /usr/lib/jvm/java-1.5.0-sun/jre/lib/rt.jar
matches
/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/java.security:#
On Windows systems, the URLs file:/dev/random and
file:/dev/urandom


this means that libapr is still using /dev/random

thanks
Neha



      Get your domain and website for less than Rs.100/month*. Go to http://in.business.yahoo.com/

---------------------------------------------------------------------
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