tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Due Billing ...@watagame.com>
Subject Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
Date Mon, 30 Jan 2012 09:41:46 GMT
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.<init>(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.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:218)
    at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
    at com.mysql.jdbc.MysqlIO.<init>(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 <chris@christopherschultz.net>

> -----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
> > <Chuck.Caldarale@unisys.com> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message