Lloyd, feel free to donate me a machine so I can reproduce ;-)
seriously, one optimization we could do is to check which module has
changed and delete that module cached information. It might be something
felix supports but this is not something that would help our users since
they most likely never update bundles in glassfish/modules, only us do.
jerome
Richard S. Hall wrote:
> On 6/19/09 4:28 PM, Lloyd Chambers wrote:
>> Wow.
>>
>> On a dual CPU 2.93GHz Mac Pro Nehalem with an Intel X25-M solid state
>> drive it takes this long?
>
> I guess so.
>
> It is not purely copying the files, it is reading and parsing the
> manifests and running the resolver. Even without deleting the bundle
> cache, startup takes 3 seconds. Still pretty fast by most measures of
> server startup.
>
> -> richard
>
>>
>>
>> Lloyd
>>
>> On Jun 19, 2009, at 1:19 PM, Richard S. Hall wrote:
>>
>>> On 6/19/09 4:17 PM, Richard S. Hall wrote:
>>>> When you have changed your GF modules, the existing OSGi bundle
>>>> cache is deleted and it starts from a new one. In those cases, I
>>>> have witnessed a 5 second startup time.
>>>
>>> I should add, this cost is incurred because all of the modules (~200
>>> of them) need to be copied back into the cache...
>>>
>>> -> richard
>>>
>>>>
>>>> -> richard
>>>>
>>>> On 6/19/09 4:13 PM, Lloyd Chambers wrote:
>>>>> I regularly see 5-10 second hangs at the "Welcome to Felix" line.
>>>>>
>>>>> Is this a network thing perhaps?
>>>>>
>>>>>
>>>>> Jun 19, 2009 1:12:31 PM
>>>>> com.sun.enterprise.admin.launcher.GFLauncherLogger info
>>>>> INFO: Successfully launched in 14 msec.
>>>>> Jun 19, 2009 1:12:32 PM
>>>>> com.sun.enterprise.glassfish.bootstrap.ASMain main
>>>>> INFO: Launching GlassFish on Felix platform
>>>>> Jun 19, 2009 1:12:32 PM
>>>>> com.sun.enterprise.glassfish.bootstrap.AbstractMain flushAndCreate
>>>>> INFO: Removing cache dir
>>>>> /work/v3/glassfishv3/glassfish/domains/domain1/felix-cache/gf left
>>>>> from a previous run
>>>>>
>>>>> Welcome to Felix.
>>>>> =================
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>> <mailto:dev-help_at_glassfish.dev.java.net>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>> <mailto:dev-help_at_glassfish.dev.java.net>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>> <mailto:dev-help_at_glassfish.dev.java.net>
>>>
>>
>> Lloyd Chambers
>> lloyd.chambers_at_sun.com <mailto:lloyd.chambers_at_sun.com>
>> GlassFish Team
>>
>>
>>