dev@glassfish.java.net

Re: Slow Startup time for Glassfish and asadmin on Mac

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 16 Jun 2010 12:51:43 -0700

It's probably the same thing that hits QL (but the command never exits):

INFO: Cannot inject
com.sun.enterprise.config.serverbeans.MonitoringService
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.monitoringServiceConfig
in component Class Modifiers
Field Value

FlashlightProbeProviderFactory (package)
monitoringServiceConfig <null>
FlashlightProbeProviderFactory (package)
ppem <null>
FlashlightProbeProviderFactory (package)
habitat <null>
FlashlightProbeProviderFactory private
listeners []
FlashlightProbeProviderFactory private static final
allProbeProviders []
FlashlightProbeProviderFactory private static final
logger com.sun.logging.LogDomains$1_at_381bfd7
FlashlightProbeProviderFactory private static final
rb java.util.PropertyResourceBundle_at_3b59be0d
FlashlightProbeProviderFactory private final
primTypes {short=short, char=char, byte=byte, int=int,
void=void, boolean=boolean, double=double, long=long, float=float}

*ERROR* [org.osgi.service.cm.ManagedService, id=5, bundle=144]:
Unexpected problem updating Configuration
PID=org.jvnet.hk2.osgiadapter.StartupContextService, factoryPID=null,
bundleLocation=file:/Users/mvatkina/v3/gfs/glassfishv3/glassfish/modules/osgi-adapter.jar
org.jvnet.hk2.component.UnsatisfiedDependencyException: Unsatisfied
dependency exception : protected
org.glassfish.flashlight.provider.ProbeProviderFactory
org.glassfish.admin.monitor.MonitoringBootstrap.probeProviderFactory
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:116)
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:66)
    at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
    at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
    at java.security.AccessController.doPrivileged(Native Method)
    at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:212)
    at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:458)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:402)
    at
org.jvnet.hk2.osgiadapter.HK2Main$StartupContextService.updated(HK2Main.java:102)
    at
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1389)
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
Caused by: org.jvnet.hk2.component.UnsatisfiedDependencyException:
Unsatisfied dependency exception :
com.sun.enterprise.config.serverbeans.MonitoringService
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.monitoringServiceConfig

-marina

Byron Nevins wrote:
> Hangs? What is the output (using --verbose of course)?
>
>
> On 6/16/2010 11:27 AM, Marina Vatkina wrote:
>> It's not about my Mac settings - start-local-instance hangs after I
>> delete a cluster and create it again :(
>>
>> -marina
>>
>> Marina Vatkina wrote:
>>> May be I hit this problem with start-local-instance.... What exactly
>>> do I need to change? Would I need to restart my mac?
>>>
>>> thanks,
>>> -marina
>>>
>>> Jason Lee wrote:
>>>> On 6/14/10 10:29 PM, Byron Nevins wrote:
>>>>> I don't have a Mac. Run a simple java program on your Mac --
>>>>>
>>>>> Note that AFAIK the code is > 3 years old and has been tested
>>>>> constantly -- every start-domain exercises it. Every asadmin
>>>>> command runs this code too.
>>>> Ah ha! Thank you, Byron (and Ludo). It appears that it was trying
>>>> to reverse resolve my DHCP address to a FQDN, which it couldn't
>>>> find. I added an entry to /etc/hosts and the execution time of
>>>> Byron's test program went from ~30 seconds to to < 0.5. That's
>>>> really going to speed things up for me. :)
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>