Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 3305 invoked from network); 21 Feb 2008 19:29:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2008 19:29:26 -0000 Received: (qmail 46330 invoked by uid 500); 21 Feb 2008 19:29:09 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 46312 invoked by uid 500); 21 Feb 2008 19:29:09 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 46300 invoked by uid 99); 21 Feb 2008 19:29:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 11:29:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [202.43.219.31] (HELO web8316.mail.in.yahoo.com) (202.43.219.31) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 21 Feb 2008 19:28:20 +0000 Received: (qmail 58400 invoked by uid 60001); 21 Feb 2008 19:28:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Z8BCvpnbcBIhArHTxrIyNAkrCNeKbrKgv8UDn4NMrGsIKhs3WiUHkbUNFoxD9JGRc1blbU5kWccPRcKbvDvhxRAUELSlnzDIVDopnwEhDbLV27Myhx70lDPK7VTteZDe6I4NTxcwabkinJHGqdk2pqXOWF+/TMiw72jS34DFJcQ=; X-YMail-OSG: 39JhmbcVM1nEwxUoS3dnuNa5EHkHqnDEyv5L8T1C85912Sww3s9.Y21aQuRepPAIKy8.GLBKQ6hMY1nef4sDgi1G1iY3QPKpV75e4Kgo5NJEIeqMBNk- Received: from [131.252.190.188] by web8316.mail.in.yahoo.com via HTTP; Thu, 21 Feb 2008 19:28:38 GMT Date: Thu, 21 Feb 2008 19:28:38 +0000 (GMT) From: Neha Agrawal Subject: Re: Why Tomcat take about 15 minutes to start? To: Tomcat Users List In-Reply-To: <47BAF63A.1060305@christopherschultz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <11855.47343.qm@web8316.mail.in.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org 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