admin@glassfish.java.net

Re: Why does force kill ignore the timeout

From: BN <bn1_at_bnevins.com>
Date: Mon, 18 Jun 2007 11:04:02 -0700

To finish the trio -- Stop-node-agent also ignores the timeout:


    public void stopNodeAgentForcibly(int timeout) throws AgentException
    {
        try {
            *boolean stopped = false;/*/stopInstanceWithinTime(timeout);
           * if (!stopped)* {
               / System.out.println("Killing Forcibly...");/
                killRelatedProcesses();
            }
        } catch (Exception e) {
            throw new AgentException(e);
        }
    }

Jane Young wrote:

> Hi Byron,
>
> Thanks for this information.
> Do you know if "eeInstancesManager.stopInstanceWithinTime(timeout);"
> is working?
>
> Jane
>
>
> BN wrote:
>
>> ProcessInstanceInternal is the eventual place where NA stops an
>> instance.
>> As you can see in the code below -- it doesn't use a timeout but
>> instead immediately kills it
>>
>> -- isTimeBound is true for force-kill, false for normal stop-instance
>>
>>
>> if (isTimeBound) {
>> *boolean stopped = false*;
>> //eeInstancesManager.stopInstanceWithinTime(timeout);
>> * if (!stopped)*
>> eeInstancesManager.killRelatedProcesses();
>> } else {
>> eeInstancesManager.stopInstance();
>> }
>>
>
>
>