dev@grizzly.java.net

Re: DefaultThreadPool.getQueueSize()

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Mon, 29 Mar 2010 14:38:54 +0200

Hi Minoru,

you're right, I can reproduce the problem.
Can you pls. file an issue?

Thanks.

WBR,
Alexey.

On Mar 26, 2010, at 11:47 , Minoru Nitta wrote:

> Hi Alexey,
>
>
> Thank you for your quick response. I attached a test program which can
> reproduce the problem. It was originally coded by Bongjae, and I
> modified
> it for this problem. Thank you Bongjae.
>
> I hope this can help you.
>
>
> Minoru
>
>> Hi Minoru,
>>
>>> It seems to me that DefaultThreadPool.getQueueSize() returns
>>> incorrect
>>> value. I am using grizzly-1.9.18-i and while running server, which
>>> is
>>> using grizzly, I periodically get statistics by calling
>>> getQueueSize()
>>> of DefaultThreadPool. It sometimes returns negative value.
>> Can you pls. try to stop all the clients and check if threadpool will
>> still return negative value.
>>
>>> I changed the program which gets statistics, from getQueueSize() of
>>> DefaultThreadPool to getQueue().size(), it was OK.
>> Right, but it's more expensive.
>>
>> WBR,
>> Alexey.
>>
>>>
>>>
>>> Thanks,
>>>
>>> Minoru
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>
> <
> DatagramSocketDuplicatedBindingTest
> .java
> >---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net