dev@glassfish.java.net

Re: GF startup failure

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 08 Feb 2007 15:54:24 -0800

Byron,

1) It's a thread-scheduling issue; it has nothing to do with the
first time.

2) In this case the idea is to soak up unused processor cycles
beginning in PEMain.main(), initializing things that will be needed
soon, but not quite yet.

3) Nice try. :)

On Feb 8, 2007, at 3:45 PM, Byron Nevins wrote:

> 1) Why is there no error the first time DAS is started?
> 2) I thought it is considered a bad idea to explicitly set thread
> priorities
> 3) Lloyd, you obviously need a slow feeble machine to work with.
> Luckily for you, I'm willing to trade you my 3 year old (512MB RAM,
> 40 GB harddisk, single core 1 GHz) wheezing, gasping PC for your 4-
> processor Mac. Can you deliver it soon?
>
> Lloyd L Chambers wrote:
>
>> It turns out that it is a *bug*. On a slow single-core machine,
>> the thread started in PEMain.main() doesn't ever get a chance to
>> run by the time it's needed, not even to set the boolean
>> PRELOAD_CALLED (the thread is set to MIN_PRIORITY).
>>
>> I will be committing a fix shortly.
>>
>> Lloyd
>>
>> On Feb 8, 2007, at 3:34 PM, Byron Nevins wrote:
>>
>>> To save time and verify that it's the installed binaries and not
>>> the domain config -- try this:
>>>
>>> Try creating a new domain:
>>>
>>> asadmin create-domain
>>>
>>> and then start-stop-start
>>>
>>> --------
>>> My other $0.02 is to forget about partial building.
>>> Wipe out EVERYTHING and build from scratch -- it takes almost
>>> none of your time and maybe a half hour of computer time.
>>>
>>>
>>> Bobby Bissett - Javasoft wrote:
>>>
>>>> Byron Nevins wrote:
>>>>
>>>>> Have you tried starting & stopping DAS a few times *before*
>>>>> you do those changes?
>>>>
>>>>
>>>>
>>>> It still fails startup.
>>>>
>>>> Starting from a whole new empty directory and doing the whole
>>>> checkout/build, I've tried building the way I normally do (all
>>>> in one maven command) and in separate commands as was suggested
>>>> to me. I can't restart the server even if all I do is start,
>>>> stop, start. With my last build, I can't even start it the
>>>> *first* time (see attached).
>>>>
>>>> So GF is completely unusable on my windows machine, though
>>>> everything works fine on my solaris machine. I know it's
>>>> passing on tinderbox, but I don't see any windows os there
>>>> (unless I'm mistaken). I've heard from one other person who is
>>>> running into the same error. Lloyd, have you tried on windows?
>>>>
>>>> Thanks,
>>>> Bobby
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> 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
>