On 11/6/06, Trustin Lee <[EMAIL PROTECTED]> wrote:
Hi Vinod and Robert,

On 11/6/06, Robert Greig <[EMAIL PROTECTED]> wrote:
>
> On 06/11/06, Vinod Panicker <[EMAIL PROTECTED]> wrote:
>
> > Hmm... 2 SocketIoProcessors didn't help and neither did the
> > SimpleByteBufferAllocator.
> >
> > MINA is showing a lot of ByteBuffers and a large Event queue. The
> > ExecutorFilter.Event is showing a retained size of 458 MB. The
> > SimpleByteBufferAllocator.SimpleByteBuffer is having a retained size
> > of 469 MB.
> >
> > In contrast, the MINA ByteBuffers that my app is using show a low
> > shallow and retained size. I hope I'm correct in assuming that my app
> > is not holding a lot of buffers, but MINA is.
>
> A large event queue means that events are coming in more quickly than
> they can be processed, hence a backlog is building up.


True.   There are two possibilities IMHO:

* The executor might not be forwarding an event to the handler. (e.g. all
executor threads have died.  please check your syserr output)

There's no error condition as such. The executor is running and so is
the server. Its just that responses become waay slow.

* The executor has forwarded, but the IoHandler or any filter might be
blocking the operation.

In this case, will MINA still have a large event queue?

Could you provide us the full thread dump, Vinod?  I guess you already
checked the dump, but we could take a look into it again in case you missed
something.

I haven't taken a dump as yet since I didn't think it could tell me
anything. The weird thing about this scenario is that there is idle
cpu time available (server is around 50% cpu at this time) and
throughput is also not too much.  Let me try some more permutations
and combinations to narrow down the problem.

You might need to look at the read throttling filter.


Peter wrote a filter builder which throttles read to limit the number of
bytes in the event queue.  You could try it.

But this will not help increase my throughput, right? Currently it's
not like there's a great amount of throughput. I think it might be
around 1 MB/s. Will check again if required.

But do please tell me if the conclusions I've reached till (regarding
event queue as well) are correct.

Regards,
Vinod.

Reply via email to