dev@glassfish.java.net

Re: Slow Startup time for Glassfish and asadmin on Mac

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Mon, 14 Jun 2010 22:22:23 -0500

On 6/14/10 9:57 PM, Ludovic Champenois wrote:
> at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
> at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
> at
> java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1129)
> at java.net.InetAddress.getHostFromNameService(InetAddress.java:551)
> at java.net.InetAddress.getCanonicalHostName(InetAddress.java:505)
> at
> com.sun.enterprise.universal.glassfish.GFLauncherUtils.getCanonicalHostName(GFLauncherUtils.java:160)
>
> at
> com.sun.enterprise.universal.glassfish.ASenvPropertyReader.setProperties(ASenvPropertyReader.java:229)
>
>
>
> getCanonicalHostName() may be very slow sometimes (20 sec), see
> http://www.google.com/search?q=getCanonicalHostName+very+slow&btnG=Search&hl=en&sa=2
>
>
> Maybe Byron can take a look?
For what it's worth, here are some log entries (started with --verbose):

Mon Jun 14 22:16:02 CDT 2010 <-- I added this to asadmin right before
the java invocation just to see
Jun 14, 2010 10:16:34 PM
com.sun.enterprise.admin.launcher.GFLauncherLogger info
Jun 14, 2010 10:16:35 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
Jun 14, 2010 10:17:14 PM com.sun.enterprise.util.EarlyLogger add
2010-06-14T22:17:27.420-0500|INFO|glassfish3.1|null|_ThreadID=26;_ThreadName={felix.fileinstall.poll=5000

-- 
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com