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
>