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 025F992B6 for ; Mon, 30 Jan 2012 09:42:38 +0000 (UTC) Received: (qmail 38175 invoked by uid 500); 30 Jan 2012 09:42:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37677 invoked by uid 500); 30 Jan 2012 09:42:14 -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 37666 invoked by uid 99); 30 Jan 2012 09:42:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2012 09:42:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ob@watagame.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vx0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2012 09:42:07 +0000 Received: by vcbfo14 with SMTP id fo14so3312240vcb.18 for ; Mon, 30 Jan 2012 01:41:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.39.67 with SMTP id f3mr1987610vce.46.1327916506203; Mon, 30 Jan 2012 01:41:46 -0800 (PST) Received: by 10.52.71.167 with HTTP; Mon, 30 Jan 2012 01:41:46 -0800 (PST) In-Reply-To: <4F1ECB05.5030708@christopherschultz.net> References: <99C8B2929B39C24493377AC7A121E21FB01017F7D6@USEA-EXCH8.na.uis.unisys.com> <4F1ECB05.5030708@christopherschultz.net> Date: Mon, 30 Jan 2012 10:41:46 +0100 Message-ID: Subject: Re: Restarting tomcat 7.0.23 on MAC OS X 10.6 From: Oliver Due Billing To: Tomcat Users List Content-Type: multipart/alternative; boundary=bcaec54ee942a4c53004b7bba791 --bcaec54ee942a4c53004b7bba791 Content-Type: text/plain; charset=ISO-8859-1 Hey Found some more details. INFO: Server startup in *151496* ms <-- This is my problem My startup command is: sudo /Library/Tomcat/bin/startup.sh I Get alot of this stuff, but I do get DB access: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1119) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:343) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2178) ... 37 more Caused by: java.net.ConnectException: Operation timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.(Socket.java:375) at java.net.Socket.(Socket.java:218) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292) ... 38 more 30-01-2012 10:34:08 org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Cannot create PoolableConnectionFactory (Communications link failure) 2012/1/24 Christopher Schultz > -----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 > > -- *Oliver Billing* *Developer* watAgame ApS Kigkurren 8D, 1st 2300 Copenhagen S Denmark office +45 3536 4110 direct +45 8833 6288 mobile +45 2087 7341 ob@watagame.com www.goSupermodel.com www.watAgame.com --bcaec54ee942a4c53004b7bba791--