dev@glassfish.java.net

Re: Slow Startup time for Glassfish and asadmin on Mac

From: Jane Young <jane.young_at_oracle.com>
Date: Wed, 16 Jun 2010 14:19:20 -0700

BTW: you will need to update the workspace - not just adding @NotNull
to admin\config-api Config.java getMonitoringService or QL will fail.
Jerome's change involves updating hk2 so that AMX handles @NotNull.

Marina Vatkina wrote:
> That might be. But it would be nice if command exits gracefully :(.
>
> thanks,
> -marina
>
> Jennifer Chou wrote:
>> Jerome has checked in a fix for this. See the change on Config.java
>> *37816 16.06.2010 07:56:26*, by dochez
>> changed AMX to honor the @NotNull annotation
>> added ability to have more than one @Create or @Delete annotation per
>> method
>> added some @NotNull annotations to monitoring related config-api
>> interfaces
>> M
>> /trunk/v3/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Config.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#3781620223013>
>> M
>> /trunk/v3/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/MonitoringService.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#3781615337921>
>> M
>> /trunk/v3/admin/config-api/src/main/java/org/glassfish/config/support/Create.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#3781619296207>
>> A
>> /trunk/v3/admin/config-api/src/main/java/org/glassfish/config/support/Deletes.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#378167772485>
>> M
>> /trunk/v3/admin/config-api/src/main/java/org/glassfish/config/support/GenericCreateCommand.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#378164755881>
>> M
>> /trunk/v3/admin/config-api/src/main/java/org/glassfish/config/support/GenericCrudCommand.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#378165444696>
>> M
>> /trunk/v3/admin/config-api/src/main/java/org/glassfish/config/support/LogStrings.properties
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#378166082518>
>> M
>> /trunk/v3/common/amx-config-impl/src/main/java/org/glassfish/admin/amx/impl/config/AMXConfigImpl.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#3781622088079>
>> M
>> /trunk/v3/common/mbeanserver/src/main/java/org/glassfish/admin/mbeanserver/PendingConfigBeans.java
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#3781621677415>
>> M /trunk/v3/pom.xml
>> <http://svnsearch.org/svnsearch/repos/GLASSFISH/search#3781631862395>
>>
>> Or if you don't want to update the workspace,
>> add @NotNull to admin\config-api Config.java getMonitoringService
>>
>>
>> On 6/16/2010 8:51 PM, Marina Vatkina wrote:
>>
>>> 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
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>