Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36C9B9A3D for ; Tue, 24 Jan 2012 15:15:45 +0000 (UTC) Received: (qmail 2930 invoked by uid 500); 24 Jan 2012 15:15:41 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2879 invoked by uid 500); 24 Jan 2012 15:15:40 -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 2870 invoked by uid 99); 24 Jan 2012 15:15:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 15:15:40 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.59.211] (HELO QMTA11.westchester.pa.mail.comcast.net) (76.96.59.211) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 15:15:34 +0000 Received: from omta06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA11.westchester.pa.mail.comcast.net with comcast id RSzQ1i00616LCl05BTFESw; Tue, 24 Jan 2012 15:15:14 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta06.westchester.pa.mail.comcast.net with comcast id RTFE1i00938FjT13STFE1v; Tue, 24 Jan 2012 15:15:14 +0000 Message-ID: <4F1ECB05.5030708@christopherschultz.net> Date: Tue, 24 Jan 2012 10:15:17 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Restarting tomcat 7.0.23 on MAC OS X 10.6 References: <99C8B2929B39C24493377AC7A121E21FB01017F7D6@USEA-EXCH8.na.uis.unisys.com> In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Francis, On 1/24/12 4:19 AM, Francis GALIEGUE wrote: > On Mon, Jan 23, 2012 at 17:52, Caldarale, Charles R > wrote: >>> From: Oliver Due Billing [mailto:ob@watagame.com] Subject: >>> Restarting tomcat 7.0.23 on MAC OS X 10.6 >> >>> I have a test-server on my macbook pro and it takes forever to >>> restart the server do anyone have a clue to whats happening. >> >> It may be collecting entropy. Take a thread dump, and see what >> the JVM is doing during the pause. >> >> You can try setting >> >> -Djava.security.egd=file:/dev/./urandom >> >> as a system property. Note that the apparently extra "/." is >> required to trick the JVM into using the alternate random byte >> source. > > I was about to suggest this but wasn't sure that the problem also > existed for Mac OS X... OSX definitely has both /dev/random and /dev/urandom, so I suspect their semantics are similar to what I've experienced on Linux systems before. I'm running (on my Mac): $ java -version Java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode) ... and this is in my java.security file: securerandom.source=file:/dev/urandom # # The entropy gathering device is described as a URL and can also # be specified with the system property "java.security.egd". For example, # -Djava.security.egd=file:/dev/urandom # Specifying this system property will override the securerandom.source # setting. There is no explicit setting for java.security.egd. I've never had a problem restarting my webapps, but I'm not using SSL on my own machine, which is the most likely thing to require a bunch of entropy on startup. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8eywUACgkQ9CaO5/Lv0PBmLQCgq8O1XwpQTZ7z7hVR91PFVNgW qCEAoKRI7vBFqHx3VA+6QcLJThbtY01l =iR5k -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org